Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Anyone want to compress this a little more?

by olus (Curate)
on Jan 11, 2008 at 19:04 UTC ( [id://661952]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Anyone want to compress this a little more?
in thread Anyone want to compress this a little more?

naveed010,

Welcome to the Monastery and take some time to browse its sections. Particularly Tutorials.
Read How (Not) To Ask A Question. That will help you getting help from others.

As for the question itself, in my first reply I'm being honest (although it may not seem so) when I tell you to worry about making the code readable.
In that same response I showed a revised version of the code, it happens to have more lines but still I think it is more readable. Take a look at it.
And, surprise, it also answers the question you are now asking. The repeating parts are in a separate sub.

The second reply is, of course, a joke.
  • Comment on Re^4: Anyone want to compress this a little more?

Log In?
Username:
Password:

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

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

    No recent polls found