An example of how Larry (or someone playing him on TV) uses perl -x:
From http://search.cpan.org/src/JHI/perl-5.8.1/patchlevel.h:
/* patchlevel.h
*
* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999,
* 2000, 2001, 2002, 2003, by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Pub
+lic
* License or the Artistic License, as specified in the README file
+.
*
*/
*snip*
/*
*snip*
History has shown that nobody distributes patches that also
modify patchlevel.h. Do it yourself. The following perl
program can be used to add a comment to patchlevel.h:
#!perl
die "Usage: perl -x patchlevel.h comment ..." unless @ARGV;
open PLIN, "patchlevel.h" or die "Couldn't open patchlevel.h : $!";
*snip*
__END__
So we have perl -x used in a context similar to how patch was used on usenet, and associated with patching, too.
"Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|