in reply to Any way to binmode <>
update I apologize for being a little rude, but like i say below, you can always <>, binmode, seek, do you thing ;)(who'd have thunk it, in the end, i did know a little something)
UPDATE: well i was almost there, this is kind of stupid, but it'll work as you want it to;
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'. | |
|---|---|
|
Re: (crazyinsomniac)Re: Any way to binmode
by bikeNomad (Priest) on Aug 02, 2001 at 19:44 UTC | |
|
Re: (crazyinsomniac)Re: Any way to binmode
by Thelonius (Priest) on Aug 02, 2001 at 19:44 UTC | |
by crazyinsomniac (Prior) on Aug 02, 2001 at 19:52 UTC | |
by bikeNomad (Priest) on Aug 02, 2001 at 20:02 UTC | |
by crazyinsomniac (Prior) on Aug 02, 2001 at 20:05 UTC | |
by bikeNomad (Priest) on Aug 02, 2001 at 20:13 UTC |