in reply to anyway to abbreviate use strict; use warnings;

Hi, metaperl -

Based on what everybody else wrote in response to your question I have the feeling I may have misunderstood your question. I thought you are looking for a way to save on typing for the modest two lines
use strict; use warnings;
If that, indeed, is what you are after (oh, come on!), all I can suggest is
#! /usr/bin/perl -w use strict;
Since you need to type the shebang line anyway this -w will save you 10 characters!

Hope this helps.

Pat

Replies are listed 'Best First'.
Re^2: anyway to abbreviate use strict; use warnings;
by moritz (Cardinal) on Jan 08, 2009 at 20:28 UTC
    Please not that 1) -w isn't the same use warnings (it acts globally, not only in a lexical scope), and 2) this won't be interpreted for modules at all.
      Thanks for the knowledgeable additions to my post, Moritz. Just for the record, however, I see no reference to lexical scope or the use of modules in metaperl's original question, hence my response (well, to say the truth - I was unaware of the facts you mention so I probably still would have suggested -w as an answer, even if metaperl had mentioned those restrictions in the original question).

      Pat