use warnings; use strict; sub get_host { open( HOST, "<hosts.txt" ); while (<HOST>) { my ($line) = $_; chomp($line); print "hostname = $line\n"; } } get_host(); __END__ hostname = hostone hostname = hosttwo
In reply to Re: Sub Return Help
by toolic
in thread Sub Return Help
by PerlCramps
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |