Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: dereference array of array

by moadeep (Novice)
on Jan 21, 2013 at 11:41 UTC ( #1014427=note: print w/ replies, xml ) Need Help??


in reply to Re: dereference array of array
in thread dereference array of array

Thanks Rolf, Dumper does indeed give me the numbers I wish. However the format -

$VAR1 = [ '11', '40', '13', '11', '3', '4' ];
is not ideal. I really need it in the form 11 40 13 11 3 4 so I can pass it into a subroutine for creating a latex table. Any ideas

Update

@{$results[0]} worked thanks


Comment on Re^2: dereference array of array
Download Code
Re^3: dereference array of array
by LanX (Canon) on Jan 21, 2013 at 11:46 UTC
    see all examples given in my reply.

    you can also manipulate $, for simple prints and $" for double-quoted expressions or just join.

    plz use <code> and <p> tags.

    UPDATE

    PLZ! when updating a post don't simply delete what you wrote before!!!

    Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2015-07-03 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls