develooper Front page | perl.perl5.porters | Postings from August 2001

[ID 20010816.009] not in perldiag: Possible unintended interpolation

From:
ksm
Date:
August 16, 2001 12:26
Subject:
[ID 20010816.009] not in perldiag: Possible unintended interpolation
Message ID:
3b7c1e72.2537.0@dca.net
Should the 'Possible unintended interpolaton' item in perl56delta.pod also be
included in perldiag.pod for use with diagnostics pragma?  Noticed it in both
5.6.1 and 5.7.2@11683.

Simple case, where diagnostic message does not print:
$ perl -Mdiagnostics -e 'print "ksm@dca.net\n"'   
Possible unintended interpolation of @dca in string at -e line 1.
Name "main::dca" used only once: possible typo at -e line 1 (#1)
    (W once) Typographical errors often show up as unique variable names.
    If you had a good reason for having a unique name, then just mention it

    again somehow to suppress the message.  The our declaration is
    provided for this purpose.
    
ksm.net

-Ken




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