in reply to Re^2: RFC: new.pm - a perl -e use/new shortener (default variable)
in thread RFC: new.pm - a perl -e use/new shortener

Hi

> x=My::Class:Name.method arg arg

I suppose you meant x=My::Class::Name.method arg arg with double colon after Class :)

But apart of this, it looks good for me!

I tested the call with -M and -m with a fake module which just print the args of the import() , using my oldest available perl(brew) version.

$ perl -MNew=X=Y::Y::Y.meth,1,2,3 -e'print "$]\n"' New , X=Y::Y::Y.meth , 1 , 2 , 3 5.006002 $ perl -mNew=X=Y::Y::Y.meth,1,2,3 -e'print "$]\n"' New , X=Y::Y::Y.meth , 1 , 2 , 3 5.006002

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!