in reply to strings with multiple parameters
Now I am trying to write a loop for it and stuck....my $line0 = <STDIN>; my $line1 = <STDIN>; my $line2 = <STDIN>; chomp $line0; chomp $line1; chomp $line2; @strings = ($line0, $line1, $line2);
I am stuck after chomp with STDIN...print "How many line" my $num = <STDIN>; for ($count = $num; $count>=1; $count--) { my $line; chomp ($line = <STDIN>); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: strings with multiple parameters
by toolic (Bishop) on Nov 07, 2011 at 17:51 UTC | |
by starface245 (Novice) on Nov 07, 2011 at 18:03 UTC |