Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: The strangest use of unlink I know of

by vrk (Chaplain)
on Feb 28, 2008 at 17:19 UTC ( #670944=note: print w/replies, xml ) Need Help??

in reply to Re: The strangest use of unlink I know of
in thread The strangest use of unlink I know of

The cute thing here is that the hash is initialized with a list of one item, a reference to an empty hash. So:

$ perl -e '%foo = {}; print %foo, "\n";' HASH(0x814dc30)

and (note the trailing comma, indicating an undefined value):

$ perl -e '%foo = {}; print join(",", %foo), "\n";' HASH(0x814dc30),

print "Just Another Perl Adept\n";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670944]
[Corion]: But my conundrum currently is how to do lightweight SQL for maintaining my user database, instead of home-cooking too much of an ORM ;)
[Corion]: But maybe Just Enough of an ORM might be the ticket, that is, just locked hashes read from the DB :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2018-03-21 12:09 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.