where that little bit of code can be written a lot of different ways.my @address = @ARGV; my @url; for my $i (0 .. @address-1) { $url[$i] = "http://$address[$i]:8161/admi/xml/queues.jsp"; }
A review of For Loops and Foreach Loops in perlsyn might be helpful.my @address = @ARGV; my @url = map "http://$_:8161/admi/xml/queues.jsp", @address;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In reply to Re: Host address not getting
by kennethk
in thread Host address not getting
by cesargarza
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |