in reply to Re: Re: Re: (crazyinsomniac)Re: Any way to binmode
in thread Any way to binmode <>
update i'm wrong, i aplogize, but you can always:
UPDATE: well i was almost there, this is kind of stupid, but it'll work as you want it to;while(<>) { binmode ARGV; seek ARGV,0,0; local $/ $_=<>; }
while(<>) { close ARGV; open ARGV, $ARGV or die $!.' '.$ARGV; binmode ARGV; binmode ARGV; local $/; print $_=<>; close BINMODE; }
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re5: (crazyinsomniac)Re: Any way to binmode
by bikeNomad (Priest) on Aug 02, 2001 at 20:13 UTC |