in reply to Re^4: why use a hash instead of an array
in thread why use a hash instead of an array
The standard for "Map as Grep" is to take ternary to define the false case too, and this for good reasons...
Though I'm not sure why if returns an empty string "" and not an empty list () when false.
DB<141> $x = do { "---" if 0>0 } => "" DB<142> "<$x>" => "<>"
Cheers Rolf
( addicted to the Perl Programming Language)
|
---|