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"; }
In reply to Re^2: Question on loops and variables
by bogonspace
in thread Question on loops and variables
by bogonspace
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |