the counter would increment, but the print never occurred.my $counter; foreach my $elem ( keys %users ) { $counter++ and print "found $users{$elem} if ( $users{$elem}{sales +} - $users{$elem}{payments} > 0; }
return status of print is always 1, and the return value of $counter++ should have been 1, because the counter was incremented ( as evident after the loop. so why would i get a counter increment and not a print?
In reply to idiom question by geektron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |