Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: How to do perl -c inside perl? (Test::Compile)

by tye (Sage)
on Aug 28, 2012 at 18:25 UTC ( #990297=note: print w/replies, xml ) Need Help??


in reply to Re: How to do perl -c inside perl?
in thread How to do perl -c inside perl?

Diving through the (surprising number of) layers, it looks like Test::Compile just does "require Foo" and sees if that fails, rather than actually preventing the code of the module from being run. Though it does run "perl -c" for a non-module file (and doesn't handle Perl code in a string).

- tye        

  • Comment on Re^2: How to do perl -c inside perl? (Test::Compile)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990297]
help
Chatterbox?
[james28909]: i forgot how to link my scratch pad
[Lady_Aleena]: [pad://]
[james28909]: my scratchpad
[james28909]: and like i say, is just an example, not working code, but hopefully you understand what i mean. :)
[james28909]: and like i say, it would be alot of work to get around renaming 3 subs haha
[Lady_Aleena]: Well, you would have to add the file munging and a lot more.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-05-24 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?