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

Re: Creating an empty hash reference of an empty hash reference

by nysus (Parson)
on Jun 02, 2018 at 09:58 UTC ( [id://1215725]=note: print w/replies, xml ) Need Help??


in reply to Creating an empty hash reference of an empty hash reference

Solved by changing last method to:

sub _load_posts { my $s = shift; if ( !-f $s->file ) { $s->_set_posts( {} ); } else { my $posts = retrieve $s->file; $s->_set_posts($posts); } }

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found