Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Re: flock with anonymous filehandle

by Xxaxx (Monk)
on Jun 10, 2001 at 06:32 UTC ( [id://87254]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: flock with anonymous filehandle
in thread flock with anonymous filehandle

Thanks for the comments.
I was wondering though, if the admonition against using
my($arg) = @_;
is because some folks forget and leave out the all importand ()?

Or is there some other reason that the shift is seemingly preferred?

Thanks
Claude

Replies are listed 'Best First'.
Re: Re: Re: Re: flock with anonymous filehandle
by Anonymous Monk on Jun 11, 2001 at 13:24 UTC
    my$arg=shift; gives you the next Argument whether in main or in sub thanks to the magic shift!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-29 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found