Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Worst thing you ever made with Perl

by Roger (Parson)
on Sep 29, 2003 at 01:20 UTC ( #294843=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Mundane C style "for" loop
    for ($i = 0; $i < 100; $i++)
    {
       print "$i\n";
    }
    
  2. or download this
    # Perl style "for" loop
    print "$_\n" for 0..99;
    
    # or this
    map { print "$_\n" } 0..99;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-03-01 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?