I'd like to pass an argument to a module.
Something which would look like this :
use Test::More tests => 5;
How can i do this for my own modules ?
~ ~ ~
Here is the context (that you shouldn't need, to answer my question) :
I have written a naive test module for operators overloading, and in each function i need to specify who is the class overloading the operator. I would like to specify it only once, when i load the My::Test::Operation module :
My::Test::Operation class => 'My::Percentage';
PS : i searched in Test::More and Test::Builder for an answer, but the code was too convoluted for me to find how it's done in these modules.