Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cxw42 opened this issue Feb 24, 2020 · 0 comments
Open

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

cxw42 opened this issue Feb 24, 2020 · 0 comments

Comments

@cxw42
Copy link

cxw42 commented Feb 24, 2020

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 :) )

@cxw42 cxw42 changed the title Request: don't check for /\.pm$/ Request: don't check for (or don't enforce) /\.pm$/ Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant