Perl: the Markov chain saw | |
PerlMonks |
List::BinarySearch and conditional tests with Test::Moreby glasswalk3r (Friar) |
on Nov 30, 2014 at 00:39 UTC ( [id://1108758]=perlquestion: print w/replies, xml ) | Need Help?? |
glasswalk3r has asked for the wisdom of the Perl Monks concerning the following question: Greetings monks, I'm trying to use List::BinarySearch inside a SKIP: block of Test::More to implement conditional tests without success because I'm not being able to import the function binsearch with require. This is what I'm trying to do:
Looking at the source of List::BinarySearch I found that it does inherits from Export and it is overriding the import (kind of weird because it is using goto instead calling SUPER) but somehow the method call is not working as expected because I'm getting those errors when executing:
I also tried using "List::BinarySearch::binsearch" but it just produce more errors:
Am I missing something here, or should I contact the module author? :-) Thanks,
Alceu Rodrigues de Freitas Junior --------------------------------- "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Back to
Seekers of Perl Wisdom
|
|