Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Trouble passing a hash to a module

by The Perlman (Scribe)
on Aug 27, 2019 at 21:25 UTC ( [id://11105141]=note: print w/replies, xml ) Need Help??


in reply to Trouble passing a hash to a module

This at least looks wrong

 $little_test_hash_ref = %little_test_hash;

You should reference the hash with \%...

 $little_test_hash_ref = \%little_test_hash;

- Ron

Replies are listed 'Best First'.
Re^2: Trouble passing a hash to a module
by holli (Abbot) on Aug 27, 2019 at 21:49 UTC
    That, or define it as a hashref in the first place.
    my $little_test_hash_ref = { COL_1 => 0, # ... };


    holli

    You can lead your users to water, but alas, you cannot drown them.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found