[clue] perl again
Chris Stone
axisml at gmail.com
Wed Apr 25 16:38:37 MDT 2012
David,
On Wed, Apr 25, 2012 at 4:20 PM, David L. Willson <DLWillson at thegeek.nu> wrote:
> In bash, I head every script with:
>
> #!/bin/bash -eux
>
> when I first write it.
>
> 'e' says "quit if you encounter an unhandled (e)rror"
> 'u' says "quit if you encounter the use of an (u)nset variable"
> 'x' says "output e(x)tra information (shows every command before it
> runs)"
>
> In perl, I head every file with:
>
> #!/usr/bin/perl -w
> use strict;
>
> Are there any other uber-careful, uber-verbose switches to perl, like those
> I use for bash?
Might want to change
#!/usr/bin/perl -w
to
#!/usr/bin/perl -W
-w enable many useful warnings
-W enable all warnings
Chris
--
Chris Stone
AxisInternet, Inc.
www.axint.net
More information about the clue
mailing list