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

[MacPerl] $[ sticky across scripts



This is probably a bug.

Summary: $[ is sticky across scripts.

1. Run the following script.

print "$[\n";
$[ = 10;
print "$[\n";

2. close the output window.

3. run it again. You'll see 10 10 but it should be 0 10.

This is on MacPerl 5.1.6r4, MacOS8.

 Xah, xah@best.com,
 http://www.best.com/~xah/Wallpaper_dir/c0_WallPaper.html
 "Perl side effects: make one assignment, the next thing you know your house is deleted."



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