Re: local var with no assignment

2008-09-10 Thread John W. Krahn
oldyork90 wrote: True or false. (Trying to figure out why this would be done with no assignment). Without an explicit assignment the variable has the value 'undef'. In the following construct, the current value of $/ is protected by localizing it to the scope of the block. local() allows th

Re: local var with no assignment

2008-09-10 Thread Chris Charley
- Original Message - From: "oldyork90" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Wednesday, September 10, 2008 10:19 AM Subject: local var with no assignment True or false. (Trying to figure out why this would be done with no assignment). The reas

Re: local var with no assignment

2008-09-10 Thread Raja Vadlamudi
On Wed, Sep 10, 2008 at 10:19 AM, oldyork90 <[EMAIL PROTECTED]> wrote: > True or false. (Trying to figure out why this would be done with no > assignment). In the following construct, the current value of $/ is > protected by localizing it to the scope of the block. In this block, > the current

local var with no assignment

2008-09-10 Thread oldyork90
True or false. (Trying to figure out why this would be done with no assignment). In the following construct, the current value of $/ is protected by localizing it to the scope of the block. In this block, the current value of $/ is not changed. { local $/; # do some things here. The val