in reply to Creating Perl5 plugin for Intellij IDEA (Camelcade)

Hello. Got an interesting question: what is $:: variable?

According to perldata there is no such special variable. According to perl variable syntax it's unnamed variable from main package. But if I dump %main:: - it's not there. But it's somewhere, because i can store and retrive data from it.

Read wonderful article about symbol tables but it didn't helped.

So, what is this thing?

And one more question: how several double-colon in a row being treated? Like $::::somevar ?

Replies are listed 'Best First'.
identifiers that begin with digits, control characters, or punctuation char
by LanX (Saint) on May 24, 2015 at 18:19 UTC