Regarding your question there is no need to worry if th earray gets newly populated each time, but if not in a block (especially loop) you might avoid such case by simply resetting the array with "@lines = ();".# in scalar context an array # will return the number of its elements print scalar @lines; #which leads to if (scalar @lines) { #array is not (an) empty (list) ... }
In reply to Re: how many lines returned from backticks
by little
in thread how many lines returned from backticks
by jdpindynet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |