Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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";