corrumpu
01-18-2001, 12:02 PM
How do array references really work..
correct me if i'm wrong. they are more or less a pointer to an array.. so if i pass in a reference to a sub.. use push(@$refernce,$somestuff) .. it should push onto the array i am making reference to?
correct?
::chris:: aka [perl-newbie]
reason i ask.. i'm using this.. and i have a post a few down from this one.. i ironed out other problems, but this seems to be a nagging question.
[This message has been edited by corrumpu (edited 18 January 2001).]
correct me if i'm wrong. they are more or less a pointer to an array.. so if i pass in a reference to a sub.. use push(@$refernce,$somestuff) .. it should push onto the array i am making reference to?
correct?
::chris:: aka [perl-newbie]
reason i ask.. i'm using this.. and i have a post a few down from this one.. i ironed out other problems, but this seems to be a nagging question.
[This message has been edited by corrumpu (edited 18 January 2001).]