Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^7: Array dereference in foreach()

by haukex (Archbishop)
on Nov 16, 2017 at 12:43 UTC ( [id://1203585]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($x,$y,$z) = ('x','yy','zzz');
    for my $val ($x,$y,$z) {
        $val = $val . length($val);
    }
    print "$x/$y/$z\n";  # prints "x1/yy2/zzz3"
    

Log In?
Username:
Password:

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

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

    No recent polls found