Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: I fear my code is unreadable

by moritz (Cardinal)
on May 06, 2008 at 12:42 UTC ( [id://684929]=note: print w/replies, xml ) Need Help??


in reply to I fear my code is unreadable

The first step is to replace (sort {$b <=> $a } ...)[0] with
use List::Util qw(max); max(...)

If you want to remove the map from that line, introduce a temporary variable that holds the output of map.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-20 12:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found