Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^10: disable functions if module not installed

by lepetitalbert (Monsignor)
on Nov 04, 2008 at 13:55 UTC ( #721396=note: print w/ replies, xml ) Need Help??


in reply to Re^9: disable functions if module not installed
in thread disable functions if module not installed

Hi ikegami and Anonymous Monk,

ImageMagick-6.4.4-2 and perl 5.10, PerlMagick is installed by the IM installer.

Everything worked fine with use Image::Magick.

ikegami , added a print $constname here

sub AUTOLOAD { # This AUTOLOAD is used to 'autoload' constants from the constant( +) # XS function. If a constant is not found then control is passed # to the AUTOLOAD in AutoLoader. my $constname; ($constname = $AUTOLOAD) =~ s/.*:://; print "\nDEBUG " . $constname . "\n";

but nothing is printed. If I remove a concatenation point have an operator missing error. Did I put this in the wrong place ?

And, after a server reboot, the script worked 2 times and then went OOM again !?

thanks a lot and have a nice day !

"There is only one good, namely knowledge, and only one evil, namely ignorance." Socrates


Comment on Re^10: disable functions if module not installed
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2015-07-04 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls