Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: chr() function

by LanX (Cardinal)
on Nov 13, 2018 at 21:53 UTC ( #1225756=note: print w/replies, xml ) Need Help??


in reply to chr() function

You have strict activated when using 5.12.

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
    Thank you sir !

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1225756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2021-06-13 05:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (54 votes). Check out past polls.

    Notices?