in reply to Help Me!
use strict; use IO::File; my $file = new IO::File('file.txt','r') or die"Error can't open file"; foreach my $line ($file->getlines) { my ($id, $name, $major, $email) = split(',',$line); chomp $email; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help Me!
by GrandFather (Saint) on Apr 10, 2011 at 02:24 UTC | |
by Swalif (Scribe) on Apr 10, 2011 at 02:34 UTC | |
by ajbrewe (Novice) on Apr 10, 2011 at 03:21 UTC | |
by GrandFather (Saint) on Apr 10, 2011 at 04:39 UTC | |
by Swalif (Scribe) on Apr 10, 2011 at 07:56 UTC | |
by jwkrahn (Abbot) on Apr 10, 2011 at 10:23 UTC |