Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: make test and File::Spec problems

by chromatic (Archbishop)
on Jun 29, 2012 at 20:43 UTC ( #979179=note: print w/ replies, xml ) Need Help??


in reply to make test and File::Spec problems

Update your version of Test::Harness. The newest releases (I believe 3.24 and later) do not unilaterally enable warnings.


Improve your skills with Modern Perl: the free book.


Comment on Re: make test and File::Spec problems
Re^2: make test and File::Spec problems
by Dirk80 (Monk) on Jun 29, 2012 at 21:21 UTC

    Thank you. I had version 3.23 of Test::Harness and now updated to 3.25. Now it is working without warnings.

    Is the warning now just suppressed from the new Test::Harness module or should I change something in the code to really solve the warning?

      When earlier versions of T::H launched external Perl processes in which to run your tests, they unilaterally added the -w flag. That enables warnings globally throughout the entire Perl process, even if the author didn't develop with warnings enabled.

      Since the release of Perl 5.6.0 in early 2000, the warnings pragma has had lexical scoping, so that individual modules, files, and scopes can enable or disable warnings on their own.

      Something somewhere in File::Spec produces that warning, but no one who's patched that module has felt the need to fix it because it's clearly not an error and it only produces a warning if you ignore lexical warnings.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-09-17 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (100 votes), past polls