Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: map and grep or clear code?

by Anonymous Monk
on Jan 31, 2012 at 10:25 UTC ( [id://950931]=note: print w/replies, xml ) Need Help??


in reply to map and grep or clear code?

Not sure why, but find myself not reaching for them ever.

Simple, you're not a perl
a real perl
an idiomatic perl programmer yet :)

Or as Modern Perl would say experienced perl hacker, not sure if he meant level 4 or 5 on the Seven Levels of Perl Mastery scale

Why would I use below ...

Because you think in terms of map and grep :)

my %filter_map = do { my $ix = 'A'; map { $ix++ => $_ } ( map { ($_) x 3 } 2 .. 6 ), ( 8 ) x 3, ( 9 ) x 4, };

Like a fighter, you think in terms of kicking and punching, not bending and expanding your knees and elbows while rotating your hips :)

Replies are listed 'Best First'.
Re^2: map and grep or clear code?
by choroba (Cardinal) on Jan 31, 2012 at 10:28 UTC
    Nice code, but I miss 7.

      Nice code, but I miss 7.

      That sum''ich was mighty hungry to i axed 'im 'fore 'e ate 9

        what language do you use? That definitely is not english nor perl. епта, можно попонятнее?
Re^2: map and grep or clear code?
by ghenry (Vicar) on Jan 31, 2012 at 12:08 UTC

    I feel comfortable saying I'm somewhere in level 4 (Expert), but have not done a JAPH and had to look up cryptocontext.

    Level 5 and 6 look very cool!

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-16 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found