ExtUtils::Constant::Utils - ExtUtils::Constant 的輔助函數
use ExtUtils::Constant::Utils qw (C_stringify);
$C_code = C_stringify $stuff;
ExtUtils::Constant::Utils 封裝了 ExtUtils::Constant、ExtUtils::Constant::Base 及衍生類別使用的工具子常式。其所有函數都明確可匯出。
一個函數,會傳回一個 7 位元 ASCII 正確 \ 轉譯過的字串版本,適合 C 的 "" 或 ''。如果傳入 Unicode 字元,它會死掉。
一個函數,會傳回一個 7 位元 ASCII 正確 \ 轉譯過的字串版本,適合 Perl 的 "" 字串。
Nicholas Clark <nick@ccl4.org>,根據 Larry Wall 等人在 h2xs
中的程式碼