in reply to blessed confusion
You got that error because $package doesn't contain the string 'URL' or 'URL::Storable'. It contains a reference. Try running your script using
perl -MCarp::Always script.pl
to find which call to new is bad.
In Section
Seekers of Perl Wisdom