Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Says cLive ;-):
$::^M is equivalent to $main::^M - 'main' is the default namespace.Actually they're both syntax errors. If they weren't syntax errors, then yes, the variable $::^M is identical to $main::^M. But not because main is the default namespace. It's because the empty stash name is interpreted as though you had said main instead. See line 579 of gv.c:
If the name turns out to have been empty, Perl looks up the main stash instead.
-- In reply to Re: $_ haters anonymou
by Dominus
|
|