in reply to Why is (keys ::) legal syntax?

Try this:
keys main::::;

Replies are listed 'Best First'.
Re: Re: Why is (keys ::) legal syntax?
by John M. Dlugosz (Monsignor) on Nov 12, 2002 at 21:05 UTC
    perl -MO=Deparse -e"print join qq(\n), keys main::::::"
    turns into %::. However, using %:: turns into %main:: internally.
Re: Re: Why is (keys ::) legal syntax?
by pg (Canon) on Nov 12, 2002 at 20:45 UTC
    a little bit more explaination:
    in main::::, the first set of :: is the operator, when the second set of :: is a val.