in reply to Re^3: Join files using perl
in thread Join files using perl

I tried this:
foreach $line (@FILE1){ chomp($line); my($ID, @values) = split("\t", $line); $aref = \@values; $common1{$ID} = $aref; } print $common1{"B01_05_121214_LAP_G1_87_20593"};
But the output is: ARRAY(0x7f8f4b82d310)

Replies are listed 'Best First'.
Re^5: Join files using perl
by ww (Archbishop) on Jan 11, 2013 at 20:19 UTC
    $aref is a reference, not the value you're looking for. You need to dereference to get the value, e.g., useful output. See ?node_id=3989;BIT=dereference, a quik'n'dirty list of links found with Super Search, which along with other search functions, can be very helpful, as long as you have the terminology to ask for relevant nodes).