develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000403.009] uninitialised concatenation???

From:
Tom Christiansen
Date:
April 4, 2000 20:29
Subject:
Re: [ID 20000403.009] uninitialised concatenation???
Message ID:
3368.954905371@chthon
>	Granted though, most examples I've found are syntax error
>	messages and not runtime warnings.  

So?  The pragma helps both.

% perl -Mstrict -Mdiagnostics
$x = 1;
Global symbol "$x" requires explicit package name at - line 1 (#1)
    
    (F) You've said "use strict vars", which indicates that all variables
    must either be lexically scoped (using "my"), declared beforehand using
    "our", or explicitly qualified to say which package the global variable
    is in (using "::").
    
$x += $x + /;
Global symbol "$x" requires explicit package name at - line 2 (#1)
^D
Search pattern not terminated at - line 2 (#2)
    
    (F) The lexer couldn't find the final delimiter of a // or m{}
    construct.  Remember that bracketing delimiters count nesting level.
    Missing the leading $ from a variable $m may cause this error.
    
Uncaught exception from user code:
        Search pattern not terminated at - line 2.
Exit 255

--tom



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