Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[dazz]: Hi I have grabbed an image from an IP camera with Image::Grab. I then want to pass that image object to a subroutine where I do a read-only test on the image with Image:Magick.
[dazz]: How do I pass an image object to a subroutine and then apply a Image::Magick a read-only method to the image object???
[dazz]: Also, I want to use Image::Magick to annotate and composite (not in a sub). How do I take a Image::Grab object and apply Image::Magick write methods to it??
[dazz]: At present, I am saving the Image::Grab image to disk, then creating a new Image::Magick object that reads the disk file.
[dazz]: .
[choroba]: Discipulus Sounds interesting. Any pictures of the puppets or paintings?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-03-27 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (317 votes). Check out past polls.