in reply to Subroutine evaluated as boolean
sub searchsub { my ($wanted)=@_; $wanted=extract_value($wanted); for(@$table) { return($_->{VALUE}, $_->{NAME}, $_->{ADDRESS}) if $_->{VALUE} eq + $wanted } () }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutine evaluated as boolean
by ikegami (Patriarch) on Oct 13, 2014 at 04:25 UTC | |
|
Re^2: Subroutine evaluated as boolean (update: hash-slice)
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 |