gamesthreshold
Programmer
# This one works:
my $lnbk = "\r\n";
$var =~ m{\G(.*?)$lnbk}gc
# This one fails:
my $null = chr(0);
$var =~ m{\G(.*?)$null}gc
Why won't the regex work with a Null character? But this does work...
s/(.*)$null//g
I don't want to use the replacement, but "walk" the variable as I have been doing. Can anyone help?