in reply to Looping through a split() and more...
foreach(@sessions){ my @lines=split "\n",$_; foreach(@lines){ my ($port,$user,$host,$type,$dir,$status,$start,$idle)=split /\s+/ +,$_; # do stuff on each line here, probably want to ignore the header l +ines } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Looping through a split() and more...
by cwest (Friar) on Jun 01, 2000 at 00:56 UTC | |
by takshaka (Friar) on Jun 01, 2000 at 03:37 UTC | |
by cwest (Friar) on Jun 01, 2000 at 07:05 UTC | |
by takshaka (Friar) on Jun 01, 2000 at 08:32 UTC | |
by cwest (Friar) on Jun 01, 2000 at 19:43 UTC | |
|