Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Array in Array

by Abigail-II (Bishop)
on Oct 06, 2003 at 13:21 UTC ( [id://296928]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Array in Array
in thread Array in Array

That's what you are supposed to get - you are printing out a reference to an array. What did you expect to get?

Abigail

Replies are listed 'Best First'.
Re: Re: Array in Array
by nylon (Acolyte) on Oct 07, 2003 at 06:06 UTC
    I was hoping on the content. Life is not simple for an apprentice. :-( ;-)
    Nylon
      References are like boxes. If you take a picture of them, you get just that: the box. To get to the content, you first have to open them. It's the same with references. If you print them, you just get that: some kind of 'spooky' representation of the reference. To get to the content, open it. For references pointing to arrays, you do that by placing a @ in front of the reference. So, for instance:
      print "@$array_ref\n";

      Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found