Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 imbibing at the Monastery: (11)
As of 2014-12-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls