schaefer@ogicse.ogc.edu (Barton E. Schaefer) (02/13/90)
The following one-liner demonstrates one aspect of the problem: % perl -e 'sub oops { print "$_[$[]?\n"; }; do oops("aha");' Invalid component in string or format at /tmp/perl-e005977 line 2. Interestingly, if the "?" is omitted, it prints "aha" but without the newline (% is the csh prompt): % perl -e 'sub oops { print "$_[$[]\n"; }; do oops("aha");' aha% This is 3.0 patchlevel 6, so feel free to tell me it's already working. -- Bart Schaefer "February. The hangnail on the big toe of the year." -- Duffy schaefer@cse.ogi.edu (used to be cse.ogc.edu)
lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) (02/13/90)
In article <7280@ogicse.ogc.edu> schaefer@ogicse.UUCP (Barton E. Schaefer) writes:
: The following one-liner demonstrates one aspect of the problem:
:
: % perl -e 'sub oops { print "$_[$[]?\n"; }; do oops("aha");'
: Invalid component in string or format at /tmp/perl-e005977 line 2.
Will be fixed in the fabled patch 9.
Larry