Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Tom Browder
I finally found the Perl 6 version of Perl 5's $0 listed in: tablets.perl6.org/appendix-b-grouped.html#special-variables as '$*EXECUTABLE_NAME', and I expected it to act the same as $0 in Perl 6, but I have two problems with it: 1. When used it yields 'perl6' regardless of the script's name (

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Paul Cochrane
On 30 May 2015 3:00:25 pm GMT+02:00, Tom Browder wrote: >I finally found the Perl 6 version of Perl 5's $0 listed in: > > tablets.perl6.org/appendix-b-grouped.html#special-variables > >as '$*EXECUTABLE_NAME', and I expected it to act the same as $0 in >Perl 6, but I have two problems with it: > >

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Tobias Leich
Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. Am 30.05.2015 um 15:00 schrieb Tom Browder: > I finally found the Perl 6 version of Perl 5's $0 listed in: > > tablets.perl6.org/appendix-b-grouped.html#special-variables > > as '$*EXECUTABLE_NAME', and I expected it to act t

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Tom Browder
On Sat, May 30, 2015 at 8:30 AM, Tobias Leich wrote: > Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. Tobias, I didn't find $*PROGRAM in the doc listed by Paul: http://doc.perl6.org/language/variables#Special_Variables Also, the following were not in: http://tablets

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Tom Browder
On Sat, May 30, 2015 at 9:03 AM, Tom Browder wrote: > On Sat, May 30, 2015 at 8:30 AM, Tobias Leich wrote: >> Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. > > Tobias, I didn't find $*PROGRAM in the doc listed by Paul: But it is the only one of the group I found in Synop

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Paul Cochrane
Hi Tom, On Sat, May 30, 2015 at 09:03:17AM -0500, Tom Browder wrote: > On Sat, May 30, 2015 at 8:30 AM, Tobias Leich wrote: > > Please also take a look at $*EXECUTABLE, $*PROGRAM and $*PROGRAM_NAME. > > Tobias, I didn't find $*PROGRAM in the doc listed by Paul: > > http://doc.perl6.org/langua

Re: Perl 5's $0 vs. Perl 6's $*EXECUTABLE_NAME

2015-05-30 Thread Moritz Lenz
Hi, On 05/30/2015 04:36 PM, Paul Cochrane wrote: > Thanks for pointing out the $*PROGRAM omission! I've just added it to the > list of special variables and it should be available online within the next > 10-15 minutes. Minor nit pick: according to the last log on http://doc.perl6.org/build-log/