in reply to Re: •Re: Editing Files In Place
in thread Editing Files In Place
the whole ARGV/STDINExcuse me? There's no use of STDIN in that program. An empty diamond is the same as <ARGV>, not <STDIN>.
And beginning Perl hackers who confuse the two will eventually get burned. My rule is to never use <> (aka <ARGV>) if you ever print some kind of prompt, and I flunk any use to the contrary in code review. Work it out for yourself to see why. The proper use for interaction where you prompt and read input is <STDIN>.
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: •Re: Re: •Re: Editing Files In Place
by belg4mit (Prior) on Jun 13, 2002 at 00:21 UTC | |
by merlyn (Sage) on Jun 13, 2002 at 02:26 UTC |