Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: choosing and/or overriding defaults for a sub argument

by ton (Friar)
on May 22, 2001 at 00:42 UTC ( [id://82087]=note: print w/replies, xml ) Need Help??


in reply to choosing and/or overriding defaults for a sub argument

The logic looks good to me, but I prefer this slightly more readable implementation:
my $self = shift; my $file = $self->{'file'} = shift || $self->{'file'};
-Ton
-----
Be bloody, bold, and resolute; laugh to scorn
The power of man...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-04-20 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found