Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Cheap idioms

by Burak (Chaplain)
on May 30, 2008 at 08:30 UTC ( #689150=note: print w/ replies, xml ) Need Help??


in reply to Cheap idioms

"I'm using it in production scripts now ..."
Well. That's a hack and a bad idea to use in some *real* code. I suggest adding a long comment before it to explain what the heck it does. But anyway I still think that this code is nasty

And here is another nasty one (multi dimensional hash emulation):

C:\>perl -wle "use strict; my %h; $h{'foo','bar', 'baz'} = 'dumb'; pri +nt $h{qw/foo bar baz/}" dumb C:\>perl -V:version version='5.10.0'; C:\>
achaic but works and hey, who needs references :p


Comment on Re: Cheap idioms
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-08 08:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (98 votes), past polls