Problems? Is your data what you think it is? | |
PerlMonks |
Re: RFC: new.pm - a perl -e use/new shortenerby jdporter (Paladin) |
on Dec 27, 2016 at 21:02 UTC ( [id://1178533]=note: print w/replies, xml ) | Need Help?? |
Nice idea! But I don't like the idea that you have to pass in the name of the variable to be assigned, for its consequence that it can't be a lexical variable.
The idea is to 'require' a module and invoke some method of it in one call, right?
Use it in a one-liner:
Pedantry: Technically, Perl 5 (that is, its intrinsic object programming system) does not have constructors. What we typically name new are typically factory methods.
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
In Section
Meditations
|
|