Ok, I figured that much, but I guess my question is this: Is there a pressing need to scope a predefined variable like $_? How could this adversely affect a program? (I'm not trying to be a smart aleck, I really want to know)
-----Original Message----- From: Dave Benware [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 1:05 AM To: Beginners perl Subject: Re: why shift @_ ? Timothy Johnson wrote: > > > Is it hot in here? <tugs at shirt collar> > > I guess I was thinking of another function, although I'd feel a little less > sheepish if I knew which one. "$_ = shift @_" should work for the example. > Good point about catching strings that evaluate to FALSE. I'll keep that in > mind. > > Quick question: What advantage is there to using local on the $_ variable? Quick answer, scoping. Bompa -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]