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.
In reply to Re: NET::OpenSSH to execute multiple commands
by toolic
in thread NET::OpenSSH to execute multiple commands
by hmb104
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |