Argh! I submitted a patch implementing $?PROGRAM in Rakudo literally
5 minutes before you sent this...
http://rt.perl.org/rt3/Ticket/Display.html?id=63228
Chris
On Feb 13, 2009, at 11:21 PM, pugs-comm...@feather.perl6.nl wrote:
Author: lwall
Date: 2009-02-14 06:21:13 +0100 (Sat, 14 Feb 2009)
New Revision: 25325
Modified:
docs/Perl6/Spec/S19-commandline.pod
Log:
[S19] $?PROGRAM makes no sense
Modified: docs/Perl6/Spec/S19-commandline.pod
===================================================================
--- docs/Perl6/Spec/S19-commandline.pod 2009-02-14 05:13:04 UTC
(rev 25324)
+++ docs/Perl6/Spec/S19-commandline.pod 2009-02-14 05:21:13 UTC
(rev 25325)
@@ -14,8 +14,8 @@
Maintainer: Jerry Gay <jerry....@rakudoconsulting.com>
Date: 12 Dec 2008
- Last Modified: 11 Feb 2009
- Version: 24
+ Last Modified: 13 Feb 2009
+ Version: 25
This is a draft document. This document describes the command line
interface.
It has changed extensively from previous versions of Perl in order
to increase
@@ -67,7 +67,7 @@
and performs the requested actions. It looks something like F</usr/
bin/perl6>,
F<parrot perl6.pbc>, or F<rakudo>, and is followed by zero or more
I<arguments>.
Perl 6 does not do any processing of the I<program> portion of the
command
-line, but it is made available at run-time in the read-only C<$?
PROGRAM>
+line, but it is made available at run-time via the C<< PROCESS::<
$PROGRAM_NAME> >>
variable.
Command line I<arguments> are broken down into I<options> and
I<values>.