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
at least come up with the "Foo.pm syntax ok" message and without raising any warnings.perl -wc Foo.pm
Given
this would give "syntax ok" but also the "useless use of constant in void context" warning, whereaspackage Foo; 42;
would only give the "syntax ok" message.package Foo; 1;
In Section
Seekers of Perl Wisdom