Re: Pragmas use strict and use warnings



On Oct 30, 2:23 pm, kv...@xxxxxxxxxxxxxxxx (Kevin Viel) wrote:
-----Original Message-----
From: Paul Lalli [mailto:mri...@xxxxxxxxx]
Sent: Tuesday, October 30, 2007 12:23 PM
To: beginn...@xxxxxxxx
Subject: Re: Pragmas use strict and use warnings
...no lexical with that name...

^^^^^^^

...to declare a lexical of that name

^^^^^^^

How else might one describe a lexical? A short variable name (or assignment
to a symbol table) specific to the current package?

Exactly the opposite. A lexical variable has nothing to do with the
symbol table and does not belong to any package.

A lexical variable is a variable that exists only for the duration of
it's lexical scope. That is, only until the end of the inner-most
enclosing block in which it was defined, or the end of the file if it
was not enclosed in any block.

Paul Lalli

.



Relevant Pages

  • Re: use warnings
    ... > What programming risks could I get without the use warnings? ... | The code in the enclosing block has warnings enabled, ... In this case that means the assignment to the ...
    (perl.beginners)
  • Re: Sharing variables between modules
    ... use strict; ... use warnings; ... # Note that this must also come *before* the use Foo line. ... package Foo; ...
    (comp.lang.perl.misc)
  • Re: Controlled types and exception safety
    ... >> type Object is limited private; ... >> package Container is ... >> package Specialized_Container is ... > assignment procedure must have Left be mode "out". ...
    (comp.lang.ada)
  • Re: strict behavior with .pm
    ... after the package statement. ... Both 'strict' and 'warnings' are lexically scoped directives. ... A package directive has no effect upon ...
    (perl.beginners)
  • Re: A bug with MacTex/Luatex [was Re: Using fourier with pdflualatex]
    ... package fourier is used and no warnings otherwise. ... unfortunate tendency to morph your current font into a t1 version of ...
    (comp.text.tex)