in reply to Terminating Read Of Input
while (my $line = <$fh>) { chomp($line); last if ($line =~ /TOTAL COMMAND SUMMARY/); my ($uid, $login, $cpupr, $cpunpr, @data) = (split("\t",$line)); }
(Update: execute last prior to split.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Terminating Read Of Input
by tirwhan (Abbot) on Aug 14, 2007 at 13:50 UTC | |
|
Re^2: Terminating Read Of Input
by SuicideJunkie (Vicar) on Aug 14, 2007 at 14:56 UTC |