@bing = ("1"); print scalar @bing," ",$#bing,$/; if ($#bing > 0) { # your conditional print "Would execute$/"; } else { print "Wouldn't execute$/"; } __END__ Results: 1 0 Wouldn't execute
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: Re: Recursion, tree parsing.
by antirice
in thread Recursion, tree parsing.
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |