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

Re: YAlQ: Yet Another local() Question.

by mischief (Hermit)
on Aug 03, 2000 at 18:44 UTC ( [id://25980]=note: print w/replies, xml ) Need Help??


in reply to YAlQ: Yet Another local() Question.

You might want to check out MJD's article, Coping with Scoping. -- This is not the signature you are looking for. Move along now.

Replies are listed 'Best First'.
Coping with Scoping.
by BlaisePascal (Monk) on Aug 03, 2000 at 18:54 UTC
    It says local() does what I think it does, it exists mainly for historical reasons, and also says "never use local(), always use my()".

    I think the last is a bit much. I find constructs like: <code> { local $\ = $RECORDSEPARATOR; $record = <INFILE>; } <code> to be quite handy, and much less unwieldy than the alternative I mentioned.

      You said:
      > I think the last is a bit much. I find constructs like: > { local $\ = $RECORDSEPARATOR; $record = ; } to be > quite handy, and much less unwieldy than the alternative > I mentioned.
      Well, yes... in which case you should check out Seven Useful Uses of local, also by mjd.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-03-28 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found