in reply to Perl 5.12: layers and opening scalars as file handles
Difference between 5.12.2 and 5.14.1 if you set PERLIO_DEBUG=
$ perl -le " open my $fh => '<:raw', \'blah' "
|
|
On the other hand, if you use
there is no difference aside from the usual memaddr$ perl -le " open my $fh => '<:encoding(UTF-8)', \'blah' "
-e:1 encoding => 0x1076000 -e:1 Layer 1 is encoding -e:1 openn(encoding,':encoding(UTF-8)','r',-1,0,0,0,1,0x3f5208) -e:1 Layer 0 is unix -e:1 Layer 0 is scalar -e:1 PerlIO_push f=0x9b4024 scalar r 0x9ba20c -e:1 PerlIO_push f=0x9b4024 encoding r 0x9b9c4c -e:0 PerlIO_pop f=0x9b4024 encoding -e:0 PerlIO_pop f=0x9b4024 scalar -e:0 Destruct 0x3f3f5c
|
|---|