Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

foreach $1

by choroba (Cardinal)
on Jun 05, 2020 at 21:49 UTC ( [id://11117743]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach $1 (@array)
    
  2. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    for $1 ('a' .. 'h') {
        print $1 if "A" =~ /(.)/;
    }
    
  3. or download this
    abcdefgh
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found