Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Converting Hashes to Objects

by haukex (Archbishop)
on May 20, 2020 at 08:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116966]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found