Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Converting Hashes to Objects

by haukex (Bishop)
on May 20, 2020 at 08:11 UTC ( #11116966=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use experimental 'refaliasing';
    my $rvars = { foo=>"bar" };
    \my %vars = $rvars;      # alias
    print $vars{foo}, "\n";  # prints "bar"
    $vars{abc} = "xyz";      # modifies $hashref's contents
    
  2. or download this
    use Path::Tiny;
    use Time::Piece;
    ...
            localtime->strftime("%d-%m-%Y-%H-%M-%S.txt") )->touchpath;
        # ...
    }
    
  3. or download this
    use Path::Tiny;
    use Time::Piece;
    ...
            localtime->strftime("%d-%m-%Y-%H-%M-%S.txt") )->touchpath );
        # ...
    }
    

Log In?
Username:
Password:

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

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










    Results (141 votes). Check out past polls.

    Notices?