Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Converting Hashes to Objects

by tobyink (Canon)
on May 18, 2020 at 07:55 UTC ( #11116886=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $obj = object { foo => 1, bar => 2 };
    
  2. or download this
    my $connection = object {
      client => object { address => '10.0.0.1', port => 20001 },
    ...
    };
    
    say $connection->server->address;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-09-25 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (136 votes). Check out past polls.

    Notices?