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

Re: [MacPerl] $^O stickiness (fwd)



At 21:56 +0100 23-12-97, Mark Manning/Muniz Eng. wrote:
>According to Chris Nandor:
>>If you change the value of $^O, it sticks between subsequent invocations
>
>Isn't that because $^O is a global variable of Perl (or rather MacPerl)?
>Thus, it is like a program calling a function.  All of the global variables
>defined within the program will also be defined within the function.

Well, if it isn't a bug it's a misfeature IMO. I expect it's something
carried over from the fact that UNIX perl fires up one interpreter for each
script whereas MacPerl keeps running (could be core Perl, could be a minor
case of dain brammage from Mathias). If it's core Perl it's likely to get
fixed with 5.005 (IIRC) when it goes multithreaded.

How does this affect other special variables?


--
# Terje Bless, BOFH, JAPH,    <URL:http://www.tss.no>
# TSS Ltd.                    <URL:phone:+4777684817>



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