in reply to Re^3: do $n exist in grep?
in thread do $n exist in grep?
('--somearg' => $somearg ) x !! $somearg, ('--otherarg' => $otherarg) x !! $otherarg,
but only if the left hand side of x doesn't have any side-effects (because unlike the ternary operator, foo() x 0 still calls foo).
See also PerlX::Maybe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: do $n exist in grep?
by davido (Cardinal) on May 12, 2021 at 17:26 UTC |