Awesome! It works like a charm. I went with the array (because I am used to it and I need to do other things).
Thanks again. Great forum!
User Profile
Collapse
-
Thanks,
I have been out of the tech game for 3 years so I am not sure what version the school district uses (they dumped the linux platform in lieu of windows). I will try you solution tomorrow and see what happens.Leave a comment:
-
Array won't print
Here's the code. When I run it, the array prints fine in the while loop but I get the last person in every array element in the for loop.
Thanks in advance.
File:
Jerry,12
Lon,11
Jon,10
Mike,9
Perl code (on linux)
[code=perl]
#!/usr/bin/perl
open (FILE, "try.txt");
$x = 0;
while(<FILE>) {
chomp;...
No activity results to display
Show More
Leave a comment: