Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: the -x command line parameter

by hbo (Monk)
on Aug 09, 2004 at 06:38 UTC ( #381149=note: print w/replies, xml ) Need Help??


in reply to the -x command line parameter

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://381149]
help
Chatterbox?
[choroba]: I'm looking forward to stable nonexperimental signatures, but before they arrive, I'm ok with my ($self, $blah) = @_

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-11-24 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (349 votes). Check out past polls.

    Notices?