Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Secret Perl Operators: the boolean list squash operator, x!!

by Jenda (Abbot)
on Jul 31, 2006 at 17:44 UTC ( #564819=note: print w/replies, xml ) Need Help??


in reply to Re^3: Secret Perl Operators: the boolean list squash operator, x!!
in thread Secret Perl Operators: the boolean list squash operator, x!!

I see. Actually to prevent confusion ... even this would autovivify:

@a = ( $hash{foo}{bar} x!! 0);
I guess we'd need to "fix" the x operator to not evaluate the lefthand operator if the righthand one is <=0.

  • Comment on Re^4: Secret Perl Operators: the boolean list squash operator, x!!
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564819]
help
Chatterbox?
[karlgoethebier]: I'll take that right hand road...
[thezip]: Howdy y'all. Is it safe to just delete StrawberryPerl-> cpan->build directories?
[1nickt]: karlgoethebier Thank you!! How could I not have ever heard of this musician?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-03-23 20:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (294 votes). Check out past polls.