in reply to Re: Passing Hashes
in thread Passing Hashes

Thanks Ted :-) the it seems to work now
You've all been a big help. I generally don't code object type code, usually its simple shell scripting or administration scripts, so this is a little different for me.
Thanks again

Replies are listed 'Best First'.
Re^3: Passing Hashes
by pg (Canon) on Oct 24, 2004 at 01:11 UTC
    "I generally don't code object type code"

    But that's not the point. Same rule applies here, which has nothing to do with OO:

    use Data::Dumper; use strict; use warnings; my $dat = do_this(); print Dumper($dat); sub do_this { my %dat = ("a", 1, "b", 2); return \%dat; }