Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Force access a Hash ref as Array ref

by exilepanda (Friar)
on Jul 20, 2021 at 06:04 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-24 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found