You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ( eval"use LWP" ) { printSTDERR"Unable to import LWP.\n"; }
if ( eval"use HTTP::Headers::Util" ) { printSTDERR"Unable to import HTTP::Headers::Util.\n"; }
If I replicate the above with a non-existent module: perl -e 'if ( eval "use Wibble::Dodah" ) { print STDERR "Unable to import Wibble::Dodah.\n"; }'
it doesn't print the error message.
There may be some trickery going on here - but I think I would expect the eval return to be undef if the module isn't available..?
The text was updated successfully, but these errors were encountered:
This needs a sanity check - I may have confused myself!
I think these two lines are redundant, and have been superceeded by the lines below.
DataCiteDoi/lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm
Lines 12 to 13 in fb9379f
These following two sets of evals appear to be incorrect, and will not print the error message if the module isn't available?
DataCiteDoi/lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm
Line 28 in fb9379f
DataCiteDoi/lib/plugins/EPrints/Plugin/Event/DataCiteEvent.pm
Lines 33 to 34 in fb9379f
If I replicate the above with a non-existent module:
perl -e 'if ( eval "use Wibble::Dodah" ) { print STDERR "Unable to import Wibble::Dodah.\n"; }'
it doesn't print the error message.
There may be some trickery going on here - but I think I would expect the eval return to be undef if the module isn't available..?
The text was updated successfully, but these errors were encountered: