Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: warnings pragma anomaly

by muba (Priest)
on Oct 19, 2015 at 23:22 UTC ( #1145366=note: print w/replies, xml ) Need Help??


in reply to Re^4: warnings pragma anomaly
in thread warnings pragma anomaly

True. But before we even start talking about unit tests, it would be nice to have

perl -wc Foo.pm
at least come up with the "Foo.pm syntax ok" message and without raising any warnings.

Given

package Foo; 42;
this would give "syntax ok" but also the "useless use of constant in void context" warning, whereas
package Foo; 1;
would only give the "syntax ok" message.

Replies are listed 'Best First'.
Re^6: warnings pragma anomaly
by choroba (Bishop) on Oct 20, 2015 at 07:45 UTC
    You can still do
    perl -MFoo -wce1
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1145366]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2019-04-19 22:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I am most likely to install a new module from CPAN if:
















    Results (107 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!