A
afrinspray
I have a quick question about accessing an array reference from an
object hash.
Say I have an object $obj and it has an array reference that can be
accessed like this:
@{$obj->array}
Does $#{$obj->array} return the length? If not, does @{obj->array} (if
used in the right context)?
Also how would I scroll through each element in the array and change
it's contents (they are string and I want to append something to each
string).
Thanks in advance,
Mike
object hash.
Say I have an object $obj and it has an array reference that can be
accessed like this:
@{$obj->array}
Does $#{$obj->array} return the length? If not, does @{obj->array} (if
used in the right context)?
Also how would I scroll through each element in the array and change
it's contents (they are string and I want to append something to each
string).
Thanks in advance,
Mike