Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl counter in cgi-bin

by Mr. Muskrat (Canon)
on Jun 05, 2004 at 15:50 UTC ( [id://361622]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ( my $count = 0; $count < length( $data ); $count++ ) {
       my $number = substr( $data, $count, 1 );
       print( $number, "\n" );
    }
    
  2. or download this
    for my $number (split //, $data) {
      print "$number<br />\n";
    }
    
  3. or download this
    print "$_<br />\n" for (split //, $data);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (None)
    As of 2024-04-25 04:23 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found