in reply to what are all the things to be considered to write a effective perl script or module?
There's a huge diff between writing a script and writing a module.
A script is possibly likely throw-away. A script can be something you put in your ~/bin - it might be a hack.
A script will likely use modules.
A module is a very freaking diff thing.
A module implies multiple usage.
Possibly distribution.
With distribution comes documentation. And tests.
And if you release something for other people to use, by god it better be tested (lookup test suites .. ./t) and documented. You don't want to release something that doesn't do what you say it does.
What if your script uses "Carp" and one day your computer blows up. You don't want to find out it's because of Carp.
Oh please no.. not carp..
A script is code. A module is a work of art. Hopefully it has some value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what are all the things to be considered to write a effective perl script or module?
by salazar (Scribe) on Feb 07, 2009 at 03:41 UTC | |
|
Re^2: what are all the things to be considered to write a effective perl script or module?
by ryanc (Monk) on Feb 07, 2009 at 23:29 UTC |