in reply to binmode(STDIN)

Long ago I noticed that open.pm didn't work for this case so I started patching Perl to fix the problem but ran into p5p's insistence that <> must be able to delete files or e-mail /etc/password or whatever else makes absolutely no sense for a file-reading operator to do.

So you might be able to misuse this misfeature of <> with something like:

BEGIN { $_= "<:raw $_" for @ARGV }

(untested)

- tye        

Replies are listed 'Best First'.
Re^2: binmode(STDIN)
by ysth (Canon) on Feb 09, 2005 at 03:10 UTC
    ! But that will interfere with deleting files, emailing /etc/passwd, or whatever.