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

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

by hdb (Monsignor)
on Apr 16, 2019 at 14:29 UTC ( #1232667=note: print w/replies, xml ) Need Help??


in reply to Re^7: Getting for() to accept a tied array in one statement
in thread Getting for() to accept a tied array in one statement

Agree. But the following is perfectly ok IMHO

for(@ar) { print "$_\n"; }

Replies are listed 'Best First'.
Re^9: Getting for() to accept a tied array in one statement
by Veltro (Hermit) on Apr 16, 2019 at 14:49 UTC
    Yes, that is perfectly fine IMO too

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-12-11 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?