Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: warnings pragma anomaly

by choroba (Cardinal)
on Oct 19, 2015 at 22:25 UTC ( [id://1145360]=note: print w/replies, xml ) Need Help??


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

I usually don't run modules, I use them. No warning is produced in such situations.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^5: warnings pragma anomaly
by muba (Priest) on Oct 19, 2015 at 23:22 UTC

    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.

      You can still do
      perl -MFoo -wce1
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^5: warnings pragma anomaly
by BrowserUk (Patriarch) on Oct 19, 2015 at 22:40 UTC

    Good point :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-24 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found