in reply to Sub only grabbing first line from STDIN
$line doesn't contain an index number of your array, it's the contents of each array element. That is, what you think is in $text[$line] is really in $lineforeach $line (@text) { my $text =$text[$line];
|
---|