is the same as:for ($@) { print $@; }
But I'd say the original semantics was wrong, so you'd better use the if(). I'd even suggest you use if (my $e = $@) {... to get rid of some nasty side-effects like $@ getting cleared by some sub you call inside your if-block...print $@;
In reply to Re: for ($@)
by Beechbone
in thread for ($@)
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |