Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Shortening "$bar{foo} if exists $bar{foo}"?

by kelan (Deacon)
on Oct 04, 2003 at 17:15 UTC ( [id://296538]=note: print w/replies, xml ) Need Help??


in reply to Re: Shortening "$bar{foo} if exists $bar{foo}"?
in thread Shortening "$bar{foo} if exists $bar{foo}"?

How about this Perl6-ish way:

given %foo{bar} { .() if exists }
It's still about as much typing, though.

kelan


Perl6 Grammar Student

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296538]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 11:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found