Currently, the only thing common to all my programs is:
#!/usr/bin/perl use strict; use warnings;
You didn't ask about comments, but I also add a comment block like the following just before the use pragmata:
# # scriptname.pl <args description> # # Brief description of programs and arguments # # YYYYMMDD: Latest change(s) # YYYYMMDD: Prior change(s) # ... # YYYYMMDD: original version
From there, it depends on what type of script I'm writing. My most commonly used modules are (roughly in order):
use DBI; use Data::Dumper; use Spreadsheet::WriteExcel; use File::Find; use Net::FTP; use Mime::Lite; use Spreadsheet::ParseExcel;
I'm trying to start getting in the habit of using (even though I should upgrade to 5.12):
use 5.10.0;
...roboticus
In reply to Re: Common uses of "use"
by roboticus
in thread Common uses of "use"
by mjscott2702
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |