in reply to about while() combine with ARGV
Anyway, the problem is that you're not removing the elements from @ARGV, and so the while loop is trying to read them as files.
if (@ARGV == 2) { $result = ">" . pop(@ARGV); # removes element from @ARGV # ... } elsif (@ARGV == 3) { $result = ">" . pop(@ARGV); $name = pop(@ARGV); # ... }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: about while() combine with ARGV
by thor (Priest) on Feb 19, 2002 at 12:45 UTC | |
by japhy (Canon) on Feb 19, 2002 at 14:00 UTC | |
by particle (Vicar) on Feb 19, 2002 at 14:44 UTC | |
|
Re: Re: about while() combine with ARGV
by gdnew (Acolyte) on Feb 19, 2002 at 10:10 UTC |