Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: diagnostics pragma and PAR/pp

by tsee (Curate)
on Jun 18, 2006 at 17:24 UTC ( #556127=note: print w/ replies, xml ) Need Help??


in reply to diagnostics pragma and PAR/pp

Hi rvosa,

I just installed PAR 0.94 from CPAN on a freshly installed linux x86_64. Then I tried pp with the following script:

#!/usr/bin/perl use strict; use warnings; use diagnostics; print "foo\n";

And used the following command to package it:

pp -o t -c -B t.pl

This works flawlessly and prints "foo\n".

Does this work for you? What version of Perl, PAR and Module::ScanDeps do you have? Does upgrading PAR and Module::ScanDeps to the current version help?

Also, I have to tell you that using "diagnostics" in a module (i.e. in library code) is a bad idea. One should always turn that on in the application code since it shouldn't be used in production code. (I mean, honestly, will the end user benefit from the verbosity? No.)

Steffen


Comment on Re: diagnostics pragma and PAR/pp
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-12-18 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls