Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

C-style for loop

by mandog (Curate)
on Nov 15, 2008 at 19:05 UTC ( [id://723825]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            for ( my $i = 0; $i < @values; $i++ ) {
                $values[$i] = _clean_cgi_param( $values[$i] );
            }
    
  2. or download this
            my @cleaned_values;
            for $value ( @values) {
                push @cleaned_values, _clean_cgi_param($value);
            }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://723825]
Approved by toolic
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found