RE: data structure question (corrected)

2004-10-18 Thread Joseph Discenza
Lasher, Brian wrote, on Monday, October 18, 2004 9:43 AM : is there a really good way to push a scalar onto that array in a : subroutine without copying the entire array : : sub Subroutine : { my $self = shift; : my $list = $self->{LIST}; : my $scalar = 6; : : push $$list,

RE: data structure question (corrected)

2004-10-18 Thread Lasher, Brian
If I have an object that has an array as one of its properties... i.e. $obj->{LIST} = [ 1,2,3,4,5 ]; is there a really good way to push a scalar onto that array in a subroutine without copying the entire array sub Subroutine { my $self = shift; my $list = $self->{LIST}; my $scalar =

data structure question

2004-10-18 Thread Lasher, Brian
If I have an object that has an array as one of its properties... i.e. $obj->{LIST} = [ 1,2,3,4,5 ]; is there a really good way to push a scalar onto that array in a subroutine without copying the entire array sub Subroutine { my $self = shift; my $list = $obj->{LIST}; my $scalar = 6;