in reply to NET::OpenSSH to execute multiple commands
Also in the foreach loop, can I read from 2 arrays? Like foreach (@arra1 || @arra2)?The following will loop through the elements of the 1st array then loop through those of the 2nd array, as if the 2 arrays were one big happy list:
foreach (@arra1, @arra2)
See also List::MoreUtils::zip if you want to alternate elements.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: NET::OpenSSH to execute multiple commands
by hmb104 (Sexton) on Aug 24, 2012 at 20:16 UTC | |
by toolic (Bishop) on Aug 24, 2012 at 20:27 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 21:55 UTC | |
by aitap (Curate) on Aug 24, 2012 at 20:29 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 21:50 UTC | |
by Kenosis (Priest) on Aug 25, 2012 at 02:32 UTC | |
by hmb104 (Sexton) on Aug 24, 2012 at 20:19 UTC |