Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^8: Getting for() to accept a tied array in one statement

by hdb (Monsignor)
on Apr 18, 2019 at 12:04 UTC ( [id://1232757]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    tie @ary, "My::Class", "some", "el", "ems";
    for (@ary) {
       some_code($_);
    }
    
  2. or download this
    my @arr1 = (0) x 4;
    my $n = 0;
    ...
    __END__
    Output
    3 2 1 0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found