Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Undefined Array Reference

by Nkuvu (Priest)
on Apr 22, 2009 at 23:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://759436]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2024-04-18 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found