in reply to Can call array but not index of an array in subroutine?!

I don't have time to go into details, but to complete the obsolete style you are using, you would do
local (*Axcoord, *Aycoord, *Azcoord, *Bxcoord, *Bycoord, *Bzcoord, *re +s_to_atom, *natres, $nseg, *beginning, *ending) = @_; our @Axcord; our @Aycord; our @Azcord; our @Bxcord; our @Bycord; our @Bzcord; ... $Axcord[$counter] ...

Better way:

my ($Axcoord, $Aycoord, $Azcoord, $Bxcoord, $Bycoord, $Bzcoord, $res_t +o_atom, $natres, $nseg, $beginning, $ending) = @_; ... $Axcord->[$counter] ...

Update: I thought I aborted posting this message. It's obviously overly rushed for the amount of problems in the OP.

Replies are listed 'Best First'.
Re^2: Can call array but not index of an array in subroutine?!
by almut (Canon) on Apr 02, 2009 at 16:54 UTC

    Not that I would recommend local (*Axcoord, ..., but I think those are supposed to be different from my @Axcord, ... (note the different number of 'o's)

Re^2: Can call array but not index of an array in subroutine?!
by fraizerangus (Sexton) on Apr 02, 2009 at 16:51 UTC
    hello! thanks for helping me, but I've tried both those solutions and neither of them work?! best wishes Dan