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
In reply to •Re: Re: •Re: Editing Files In Place
by merlyn
in thread Editing Files In Place
by gnubbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |