Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Undefined Array Reference

by Nkuvu (Priest)
on Apr 22, 2009 at 23:40 UTC ( #759436=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "ref_a: ", $#$ref_a, "\nref_b: ", $#$ref_b, "\n";
    for my $i (0..$#$ref_a) {
        print "Reading element $i\n";
        push @{$ref_a->[$i]}, @{$ref_b->[$i]};
    }
    
  2. or download this
    ref_a: 5
    ref_b: 2
    Reading element 0
    ...
    Reading element 2
    Reading element 3
    Can't use an undefined value as an ARRAY reference at scriptname.pl li
    +ne 23
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2014-10-26 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (151 votes), past polls