in reply to Can call array but not index of an array in subroutine?!
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 | |
|
Re^2: Can call array but not index of an array in subroutine?!
by fraizerangus (Sexton) on Apr 02, 2009 at 16:51 UTC |