in reply to Re: Question on loops and variables
in thread Question on loops and variables
it outputs data appropriately so it seems it has something to do with the loop but i don't understand what. Oh, I forgot to add thank you very much for the response! :)while (<F>) { @fields = split(',', $_); $hostname = $fields[3]; my $hostip = $fields[5]; print "$hostname\n"; print "$hostip\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Question on loops and variables
by jethro (Monsignor) on Oct 12, 2011 at 22:32 UTC | |
|
Re^3: Question on loops and variables
by AnomalousMonk (Archbishop) on Oct 13, 2011 at 00:06 UTC |