in reply to (tye)Re: Get file make backup
in thread Get file make backup

Which part of "this idiom"? The \4096 part? If that's the case, just leave it out or replace it with undef.

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
(tye)Re2: Get file make backup
by tye (Sage) on May 22, 2001 at 21:42 UTC

    Sorry, I was busy and so unacceptably terse. do { local *ARGV; @ARGV= $filename; <> } returns nothing in Perl 5.004 and keeps reading the "current" file in Perl 5.005. I'd be interested in more testing on this as I've just got the two examples at the moment so I'm not sure if the behavior is consistant across all of 5.004 and 5.005.

            - tye (but my friends call me "Tye")