Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: foreach doesn't select array element

by Anonymous Monk
on May 04, 2009 at 08:52 UTC ( #761675=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # ALL SAME
     dump(@$fldref[TXT]);
    ...
     }
     my ( $foobar ) = @$fldref[TXT];
     dump($foobar);
    
  2. or download this
    
     foreach my $tmp (@{ $fldref[TXT][0] }) {
        dump($tmp);
     }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-05-29 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?