in reply to Re: Using pack/unpack on a PNG file
in thread Using pack/unpack on a PNG file
(...) if FILEHANDLE is an expression, its value is the real filehandle. (This is considered a symbolic reference, so use strict "refs" should not be in effect.)
Update: I wouldn't recomend it, though, as it's confusing to a reader :-) The file is still opened with default layers:system 'echo abc > 1.txt'; open '<:raw', '1.txt' or die $!; print while readline '<:raw'; unlink '1.txt';
print PerlIO::get_layers("<:raw"); # unixperlio
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using pack/unpack on a PNG file
by AnomalousMonk (Archbishop) on May 26, 2015 at 07:24 UTC | |
by choroba (Cardinal) on May 26, 2015 at 07:30 UTC | |
by AnomalousMonk (Archbishop) on May 26, 2015 at 07:35 UTC | |
by Anonymous Monk on May 26, 2015 at 09:48 UTC |