Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Force access a Hash ref as Array ref

by perlfan (Vicar)
on Jul 20, 2021 at 22:17 UTC ( #11135239=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    
    ...
    }
    
    1;
    
  2. or download this
    use Data::Dumper ();
    
    my $foo = Foo->new(a => 1, b => 2, c => [qw/apple banana grape/]);
    
    print Data::Dumper::Dumper(\$foo)
    
  3. or download this
    $VAR1 = \bless( {
                       'b' => 2,
    ...
                       'a' => 1
                     }, 'Foo' );
    
  4. or download this
    package Foo;
    
    ...
    }
    
    1;
    
  5. or download this
    $VAR1 = \bless( [
                       'a',
    ...
                         'grape'
                       ]
                     ], 'Foo' );
    

Log In?
Username:
Password:

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

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












      Results (69 votes). Check out past polls.

      Notices?