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

Re: Extract&Print row from two-dimensional array

by zentara (Cardinal)
on Nov 09, 2010 at 20:18 UTC ( [id://870397]=note: print w/replies, xml ) Need Help??


in reply to Extract&Print row from two-dimensional array

It looks to me like you are getting an arrayref from $cell[0], not an array. So you need to dereference the ARRAY(0x2b59f14) into an array before joining.

untested

my $rowOneCells = $cell[0]; #get row one as new arrayref my $rowOne = join (", ", @{$rowOneCells} );

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^2: Extract&Print row from two-dimensional array
by petecm99 (Pilgrim) on Nov 09, 2010 at 21:10 UTC
    Brilliant! Thanks for that, worked like a charm...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2026-01-16 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (119 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.