Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: serial number generator

by GrandFather (Sage)
on Oct 03, 2012 at 04:26 UTC ( #996975=note: print w/ replies, xml ) Need Help??


in reply to Re: serial number generator
in thread serial number generator

The fence picket error is avoided by avoiding the C for loop. Use a Perl for loop instead and a range:

for my $number (1 .. $mal) { ... }

which is clearer, more concise and correct.

True laziness is hard work


Comment on Re^2: serial number generator
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2015-07-04 07:03 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 (58 votes), past polls