unquoted \0 is a reference to a literal number (i.e. read-only scalar) ...
DB<135> $/=\0 => \0 DB<136> ref $/ => "SCALAR" DB<137> ${$/} => 0
... and not the escape sequence for NUL byte!
DB<146> $/="\0" => "\0" DB<147> ord $/ => 0
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: Why doesn't this work?
by LanX
in thread Why doesn't this work?
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |