Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Coping with Scoping.

by BlaisePascal (Monk)
on Aug 03, 2000 at 18:54 UTC ( #25985=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
RE: Coping with Scoping.
by btrott (Parson) on Aug 03, 2000 at 20:03 UTC
    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://25985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-01-24 20:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (65 votes). Check out past polls.

    Notices?