in reply to Re: Please help with arrays
in thread Please help with arrays
But I get this:sub ExtractHopHostIp{ my $refaLines=shift; my @Fields; my @FoundHops; print @$refaLines,"\n"; for (@$refaLines) { s/[ \t]+/ /g; # remove duplicate blanks and tabs @Fields=split / /,$_; splice(@Fields,4); # get fields from the array push @FoundHops,@Fields; } @FoundHops = join " ",@FoundHops; print @FoundHops,"\n"; }
20050623 Edit by ysth: code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Please help with arrays
by halley (Prior) on Jun 22, 2005 at 13:48 UTC | |
|
Re^3: Please help with arrays
by robot_tourist (Hermit) on Jun 22, 2005 at 13:39 UTC | |
|
Re^3: Please help with arrays
by robot_tourist (Hermit) on Jun 23, 2005 at 11:17 UTC |