Write my $alpha = ...
Perl can't tell if it's a private (my) or global package (our) variable.
So it takes a guess and asks you to make it clear by prepending a name space.
our $var is basically an alias of the fully qualified $Pkg::var with the current package at declaration time.
And yes this error message is confusing because nowadays most declarations are done with my , which doesn't have a name space.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: chr() function
by LanX
in thread chr() function
by catfish1116
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |