Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Strange grep construct

by jwkrahn (Abbot)
on Apr 12, 2019 at 18:21 UTC ( [id://1232505]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Strange grep construct
in thread Strange grep construct

I have trouble seeing a justification for this degree of golfing,

Perl golf is the art of using as few characters as possible so this doesn't really qualify.

With unnecessary characters removed:

my@i=grep defined,@{{map{lc,$_}@a}}{map{lc}@b};

Replies are listed 'Best First'.
Re^4: Strange grep construct
by LanX (Saint) on Apr 12, 2019 at 22:38 UTC
    > > this degree of golfing

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found