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

Re: reducing the number of lines

by pvaldes (Chaplain)
on Jan 12, 2013 at 13:26 UTC ( #1013038=note: print w/ replies, xml ) Need Help??


in reply to reducing the number of lines

I need to rewrite this in a more simpler form

$k-2>0 $l-2>0

Same as:

$k>2 $l>2

And you can save one line here

$h=0; $c=0;

same as:

($h,$c) = (0,0);

Updated: the tobyink's solution is more elegant

$h = $c = 0


Comment on Re: reducing the number of lines
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2015-07-07 04:19 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 (87 votes), past polls