in reply to Common uses of "use"
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Common uses of "use" (OT: comments vs. POD)
by toolic (Bishop) on Oct 27, 2010 at 13:37 UTC | |
by roboticus (Chancellor) on Oct 27, 2010 at 16:19 UTC |