Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by Veltro (Hermit)
on Apr 16, 2019 at 14:24 UTC ( [id://1232666] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use ar ;
    my @ar ;
    my $art = tie @ar, "ar" ;
    @ar = (1, 2) ;
    
  2. or download this
       my @ar-deref = @{$art};