On Tue, Sep 04, 2001 at 02:22:56PM +0100, Jose Abilio Oliveira Matos wrote:
>   
>   As a curiosity, did reLyX worked before?
>   I guess that if it work then we had a strange case of interaction beetween
> BLOCK and the variable outside. Hardly what anyone would expect.

BEGIN blocks are executed immediately after compilation.  Variable names
are known, but assignments in "my" constructs haven't been done yet.

With the previous version of reLyX, try
$ perl -w reLyX-1.2 
you'll get
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/reLyX-1.2 line 52.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/reLyX-1.2 line 52.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/reLyX-1.2 line 52.
Use of uninitialized value in concatenation (.) or string at
/usr/local/bin/reLyX-1.2 line 52.

the uninitialized value being $mainscript...

BTW (Amir I guess?) why 
#!/usr/bin/perl
then
$^W = 1; # same as 'perl -w'

?  This disables -w in the BEGIN {}, as seen here

[snip]

> 
> -- 
> José

-- 
        Yves

Reply via email to