Thanks for all the responses to my question regarding deferencing a hash 
reference which in turn references an array.  I decided to use the arrow 
operator.

Now I'd like to know if it is possible to pass an object as an argument to 
subroutine.  I tried doing this as follows:

in one file, the object is declared as

my $object = Class->new( ....);

I tried to pass the object to a subroutine in a different file as such

&subroutine($object,$other_param);

In the receiving subroutine:

my ($object,$other_param) = @_;

but when I try to access an object method in this subroutine, nothing happens.

Any ideas?

Thanks
Peter Cline
Inet Developer
New York Times Digital

Reply via email to