Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    for( @{ tie my @x, "My::Class", "first", "second"; \@x } ) {
        print "$_\n";
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found