Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Force access a Hash ref as Array ref

by exilepanda (Pilgrim)
on Jul 20, 2021 at 06:04 UTC ( #11135194=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package SomeMod;
    sub new {
    ...
    use SomeMod;
    my %Items_Key_Value_pairs = (A => "Apple", B => "Banana", C => "Cat");
    my $obj = SomeMod -> new ( %Items_Key_Value_pairs ) ;
    
  2. or download this
    package SomeMod;
    sub new {
    ...
        Config => { %some_config_param }
    ) ;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2022-01-27 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?