"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Dear Ken, Thanks for your input but I just updated my post to reflect where I needed the correction/help at. Thanks! Forget about the code you have, start over, create a folder "one" with five files for.pl dowhile.pl while.pl dountil.pl forfor.pl and start filling them until you have a command of how they work; first you learn addition, then you learn multiplication say one print a range of numbers; say 24 .. 42 say two print odds from 24 .. 42 and evens from 42 .. 84 say three same as two except avoid all use of range operator, use addition say four same as two except only use subtraction perlintro#Conditional and looping constructs http://learn.perl.org/books/beginning-perl/ Chapter 4: Loops and Decisions http://perltuts.com/tutorials/quick-start/loops The for loop in Perl, while loop http://www.ignition-training.com/booklets/perldistilled.pdf
In reply to Re^3: Perl Loops
by Anonymous Monk
|
|