spelee has asked for the wisdom of the Perl Monks concerning the following question:
Now I noticed that when I use "my", it seems to read the table and print the 4th element for each row properly.while(<>) { chomp; my (@stuff) = split(","); push(@lines, \@stuff); } $size=@lines; # just printing the 4th element in each row. for($i=0; $i<$size; $i++) { print("item: $lines[$i]->[3]\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question about the function "my"
by kvale (Monsignor) on Apr 30, 2004 at 15:45 UTC | |
|
•Re: question about the function "my"
by merlyn (Sage) on Apr 30, 2004 at 15:41 UTC |