Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
P is for Practical
 
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 exploiting the Monastery: (10)
As of 2014-04-16 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls