develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991114.001] dangerous behavior from local

From:
M.J.T. Guy
Date:
November 16, 1999 06:04
Subject:
Re: [ID 19991114.001] dangerous behavior from local
Message ID:
E11njDa-0000d7-00@taurus.cus.cam.ac.uk
Nick Ing-Simmons <nik@tiuk.ti.com> wrote
> I think it is doing the right thing.

It has been pointed out that the construct apparently isn't localising
anything.

It can't be right for a local() not to localise anything *and* give
no warning.


And as another data point, I note that

      local (undef);

is valid Perl.    I suspect that '$/ = undef' is being evaluated as
'undef' and passed as argument to local().


Mike Guy



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About