in reply to chr() function
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: chr() function
by catfish1116 (Beadle) on Nov 13, 2018 at 21:58 UTC |