bonoboy has asked for the wisdom of the Perl Monks concerning the following question:
As I figured STDIN might be read into @_. It's giving me syntax errors though. Was that a wrong assumption about @_? And if so, how would you do it? And if it's not, is my syntax just crappy?if(defined($number_of_lines)) { if($#_ eq $number_of_lines) { last; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding number of lines in STDIN
by castaway (Parson) on Dec 18, 2003 at 11:21 UTC | |
by ysth (Canon) on Dec 18, 2003 at 16:32 UTC | |
|
Re: Finding number of lines in STDIN
by bart (Canon) on Dec 18, 2003 at 11:17 UTC |