in reply to •Re: Re: •Re: Editing Files In Place
in thread Editing Files In Place

Well yes, I new it was the ARGV filehandle, but I tend to think of waka waka as STDIN. If @ARGV is empty waka waka reads from STDIN.

(I'd even contemplated writing magic ARGV but decided against it ;-)

--
perl -pew "s/\b;([mnst])/'$1/g"

  • Comment on Re: •Re: Re: •Re: Editing Files In Place

Replies are listed 'Best First'.
•Re: Re: •Re: Re: •Re: Editing Files In Place
by merlyn (Sage) on Jun 13, 2002 at 02:26 UTC
    but I tend to think of waka waka as STDIN
    And that's exactly the kind of thinking I'm arguing against.

    The empty angle-brackets have precisely one function: to be used to process the files specified on the command line to create a filter written in Perl. That it happens to read standard input if no filenames are specified or if a lone dash is included, is merely a special case, not the typical case. So, I'm working everywhere to kill the bad memes, and yours is an example of that.

    -- Randal L. Schwartz, Perl hacker