ingydotnet/mo-pm

Request: don't check for (or don't enforce) /\.pm$/

Opened this issue · 0 comments

cxw42 commented

Thank you for this module, which I am using for the first time. I am inlining Mo into a script that does not have a .pm extension. However, Mo::Inline insists on that extension:

mo-pm/lib/Mo/Inline.pm

Lines 33 to 34 in 442ab04

die "'$name' is not a Perl module"
if -f $name and $name !~ /\.pm$/;

Would you be willing to

  • remove that check,
  • change it from die to warn, or
  • add an option to proceed anyway (--force?)

Thank you for considering this request!

(Yes, the workaround is trivial, so this is a nice-to-have, and is not a blocking issue :) )