[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] $0 oddity



The behavior is not correct on my machine. (truncation leaving 7 chars) MacPerl5.1.5r4. MacOS8. PowerMac7500/100.

 Xah, xah@best.com
 http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html
 Mountain View, CA, USA

At 00.40 12/16/97, Brian L. Matthews wrote:
>#!perl
>$me = $0;
>print "\$0 is '$0'\n";
>print "\$me is '$me'\n";
>$0 =~ s/.*://;
>$me =~ s/.*://;
>print "\$0 is '$0'\n";
>print "\$me is '$me'\n";
>
>If I save this in the file 'name test.pl' on the desktop then run it, I get:
>
>$0 is 'Macintosh HD:Desktop Folder:name test.pl'
>$me is 'Macintosh HD:Desktop Folder:name test.pl'
>$0 is 'name te'
>$me is 'name test.pl'
>
>The third line appears incorrect.

Chris Nandor writes 16 Dec 1997 08:15:50 -0500:
>Confirmed here.  It appears that no matter what I name it, the name is
>truncated at 7 characters.

At 9:50 AM -0800 1997.12.16, Alan Fry wrote: 
>FWIW it works properly with MacPerl 5.1.5r4CFM68K and MacOS 7.5.1 on a
>68030 Powerbook.




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch