Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Do you ever forget to use the strictures?

by inman (Curate)
on Aug 30, 2005 at 14:11 UTC ( [id://487765]=note: print w/replies, xml ) Need Help??


in reply to Do you ever forget to use the strictures?

No because I develop on Windows and create all of my Perl scripts from a template (see Perl template file in Windows new menu). the template looks like:

#! /usr/bin/perl use strict; use warnings;

Replies are listed 'Best First'.
Re^2: Do you ever forget to use the strictures?
by xdg (Monsignor) on Aug 30, 2005 at 14:41 UTC

    Exactly: ++ to inman. My module templates have them automatically. And I use an editor macro to easily add them to any quick and dirty code I write. E.g., for vim:

    map ,pl ggI#!/usr/bin/perl<CR>use strict;<CR>use warnings;<CR><ESC>

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^2: Do you ever forget to use the strictures?
by Fletch (Bishop) on Aug 30, 2005 at 14:41 UTC
Re^2: Do you ever forget to use the strictures?
by rob_au (Abbot) on Aug 30, 2005 at 23:31 UTC
    My own boilerplate template is similar:
    #!/usr/bin/env perl # $Header$ use strict; use vars qw( $VERSION ); $VERSION = sprintf('%d.%02d', q$Revision: 1.0 $ =~ /(\d+)\.(\d+)/); 1; __END__

     

    perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://487765]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-16 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found