package Foo; $a = 1; package main; print "foo\n" if defined %Foo::; print "bar\n" if defined %Bar::;
Note that the symbol table won't be defined until you put a symbol in it; a mere package declaration doesn't seem to do it.
In reply to Re: multiple package in one file
by friedo
in thread multiple packages in one file
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |