in reply to Re: binmode for @ARGV
in thread binmode for @ARGV

Unfortunately, applying binmode to ARGV before the file is opened, doesn't persist once perl uses @ARGV to open the file:(. Presumably reset during the open.

I guess that renders Juerd's idiom unusable for binary files unless their is some way of interjecting between the open and the read done by <>;


Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.

Replies are listed 'Best First'.
Re: Re: Re: binmode for @ARGV
by sauoq (Abbot) on Jan 26, 2003 at 02:25 UTC
    I guess that renders Juerd's idiom unusable for binary files. . .

    Only on already unusable platforms.

    sauoq ducks.

    -sauoq
    "My two cents aren't worth a dime.";