in reply to RFC: new.pm - a perl -e use/new shortener
This is really cool. You can use the -M sugar allowing comma-separated args to simplify the syntax further:
I think a good improvement would be to load the strict and warnings pragmas automatically.$ cat text.txt hello, world $ perl -Mnew=Path::Tiny,file,text.txt -E' say $file->slurp; ' hello, world
(Also suggest: $ABSTRACT =~ s/shorted/shortens/;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: new.pm - a perl -e use/new shortener (strictness)
by LanX (Saint) on Dec 24, 2016 at 12:50 UTC |