Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if(!searchsub($value)) { #stuff }
my @arr=searchsub($value); if(!@arr) { #stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine evaluated as boolean
by LanX (Saint) on Oct 12, 2014 at 22:51 UTC | |
|
Re: Subroutine evaluated as boolean
by Anonymous Monk on Oct 13, 2014 at 00:30 UTC | |
|
Re: Subroutine evaluated as boolean
by boftx (Deacon) on Oct 13, 2014 at 01:08 UTC | |
|
Re: Subroutine evaluated as boolean
by Anonymous Monk on Oct 13, 2014 at 00:33 UTC | |
by ikegami (Patriarch) on Oct 13, 2014 at 04:25 UTC | |
by LanX (Saint) on Oct 13, 2014 at 00:44 UTC | |
by Anonymous Monk on Oct 13, 2014 at 01:07 UTC | |
by LanX (Saint) on Oct 13, 2014 at 01:14 UTC |