in reply to Secret Perl Operators: the boolean list squash operator, x!!
This is cool!
Sadly, in most cases where I am doing conditionals, I am using optional hash keys with exists. Unfortunately, these would autovivify under x!!, which is an undesirable side effect. Ifs or ternaries work, but I can't see a way of stopping the autovivification with the "boolean list squash" operator. Can anybody suggest how to solve my variant?
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Secret Perl Operators: the boolean list squash operator, x!!
by Aristotle (Chancellor) on Jul 31, 2006 at 17:40 UTC | |
by rinceWind (Monsignor) on Jul 31, 2006 at 20:03 UTC | |
Re^2: Secret Perl Operators: the boolean list squash operator, x!!
by Jenda (Abbot) on Jul 31, 2006 at 17:20 UTC | |
by Aristotle (Chancellor) on Jul 31, 2006 at 17:34 UTC | |
by Jenda (Abbot) on Jul 31, 2006 at 17:44 UTC | |
by eric256 (Parson) on Jul 31, 2006 at 17:47 UTC |
In Section
Meditations