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,
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 =
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;