in reply to Re^2: Swap Ascii chr() for null string
in thread Swap Ascii chr() for null string
You can't have arbitrary code in the left of a substitution regular expression. (If you use the e modifier, though, you can do so on the right side.)
So you either need to use interpolation:
$form_feed = chr(12); $var =~ s/$form_feed//g;
Or you can just specify the value using a hex or octal literal \x0c or \014:
$var =~ s/\014//g;
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|