Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Perl counter in cgi-bin

by Mr. Muskrat (Canon)
on Jun 05, 2004 at 15:50 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2023-09-22 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?