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

Re: TieRegistry FastDelete problem

by pc88mxer (Vicar)
on Jul 10, 2008 at 20:44 UTC ( [id://696807]=note: print w/replies, xml ) Need Help??


in reply to TieRegistry FastDelete problem

if someone can tell me in how to use delete in a void context, that would also be helpful.
Void context means you are not asking for any return values:
delete $Registry->{$key}; # void context $res = delete $Registry->{$key}; # scalar context if (delete $Registry->{$key}) { ... } # also scalar context @results = delete $Registry->{$key}; # list context
Update: 'array' context should be 'list' context (thanks ikegami.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found