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
- 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
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
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