sub testUnless { my $v = 'Navidson'; unless ( $v ) {}; # returns 'Navidson' } sub testIfNot { my $v = 'Holloway'; if ( ! $v ) {}; # returns nothing }
In reply to unless versus if ( ! ) inside a subroutine by Wheeler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |