SPUG:Best One-Liners and Scripts for UNIX
Jim Flanagan
jimfl at tensegrity.net
Thu Apr 17 18:29:49 CDT 2003
On Thu, 17 Apr 2003, SPUG-list-owner wrote:
> On Thu, Apr 17, 2003 at 01:38:10PM -0700, Cantrall, Christopher wrote:
> >
> > It's the sort of thing I love about perl: solve a quick problem in a
> > readable, maintable way. And I don't need to add the she-bang line
> > manually.
>
> But dude, you're writing much more code than is necessary!
>
> #!/usr/bin/perl -wp
> BEGIN { print "#!/usr/bin/perl -wp\nuse strict;\n\n"; }
> s/^\s*\d{3}:\s//;
> # print; # courtesy of -p option
I'm pretty sure Christopher mentioned something about "readable,
maintainable."
:^)
--
::jimfl
http://jimfl.tensegrity.net
mailto:jimfl%40t%65ns%65gr%69ty.n%65t
More information about the spug-list
mailing list