in reply to Re: Dereferencing question
in thread Dereferencing question

Here's some example usage; the references shouldn't in "doSomething" go away when you go out of it's (sub doSomething)'s scope?
use MyObject; # -------------------------------- # main.pl # -------------------------------- my $object = undef; $object = new MyObject; $object->fillIt(); doSomething($object->A); sub doSomething { my $arrayReference = shift; foreach my $hashReference (@$arrayReference) { # do something } } $object->cleanUp(); exit 0;
so you are saying:
@a = ();
will clean up all the hashreferences in @a?