in reply to using strict from another module

John--

I second Corion's sentiment: When you go to another machine and try to do a quickie, you may not have access to your personal module.

That said, I'd suggest creating a macro in your editor to plop in the important stuff. For example, if using vim, the command:

:abbrev ## #!/usr/bin/perl -w^V^Muse strict;
would insert a typical pair of lines at the start of your program when you enter ## in insert mode. Most editors have a similar macro feature. In fact, there have been several great threads about setting up editors for use with Perl. (I'd include some links here, but I'm still a newb, and don't know which ones are the best to include.)

--roboticus

Replies are listed 'Best First'.
Re^2: using strict from another module
by chromatic (Archbishop) on Mar 31, 2006 at 18:56 UTC

    When you go to another machine, you may not have access to your personal macro!

      I keep my .vimrc on my subversion server for exactly that reason. Of course, you could do the same with a personal module, too.

      -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.

      chromatic--

      Very true, ++ for you!

      My original intent was that I think it's important to see the standard junk at the front, so you don't forget the basics. (Very important, especially for beginners...) If only I had thought to say so.

      Thanks for the catch!

      --roboticus