Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

C-style for loop

by mandog (Curate)
on Nov 15, 2008 at 19:05 UTC ( #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
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? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-02-28 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?