in reply to Re: Re: Re: Re: my, my, my
in thread my, my, my

Unicode sub names are fine.

But, I discovered something else: my doesn't work right. With strict, I get an error that "global $α requires explicit package name" on the line that declares it lexical!

Without strict, it compiles, and the other code shows that it is indeed lexical.

#use strict; use warnings; use utf8; my $α= 5; my $Φ= 4; sub Φ { return $Φ; } package XX; $main::Φ= 33.33333; package main; print Φ;
—John

Be sure to view as UTF-8 in your browser.

Cross reference: Unicode source code problem in 5.6.1.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: my, my, my
by Thelonius (Priest) on Nov 18, 2002 at 17:44 UTC
    Here's a twist. Under perl 5.8.0, compiled for cygwin, you program works fine if and only if use strict; is present.

    On the other hand, if use strict is commented out, I get this bizarre error:

    "my" variable $strict::VERSION can't be in a package at lib/strict.pm +line 93, near "$strict::VERSION " Compilation failed in require at lib/utf8_heavy.pl line 2. BEGIN failed--compilation aborted at lib/utf8_heavy.pl line 2. Compilation failed in require at lib/utf8.pm line 17.