Apropos of nothing, you could do the whole loop as one statement:
push @serialOperations, grep { Host::get_cname($_) =~ /Workstation|Ana +logGateway/ } @syshosts;
In reply to Re: using push
by Roy Johnson
in thread using push
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |