so you are saying: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;
will clean up all the hashreferences in @a?@a = ();
In reply to Re^2: Dereferencing question
by bob_dobalina
in thread Dereferencing question
by bob_dobalina
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |