What I usually use is
# vim:columns=80:ts=4:sw=4:shiftround:filetype=perl use strict; use warnings; use feature qw( :5.10 ); use Carp;
Most of the time I'm working on older boxes (RH7.2 anyone?) so I delete the feature pragma and stick to 5.6 era syntax. But for my own stuff I try to use something a bit more modern.
And my list of use statements is always longer than this. Basics like Cwd, File::Basename, and Data::Dumper pop up pretty regularly, as does Moose::* but they are on a case-by-case basis.
- doug
In reply to Re: Common uses of "use"
by doug
in thread Common uses of "use"
by mjscott2702
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |