You can have several packages in one file without extra bracketing around them.but additional blocks do avoid potential name clashes of lexical variables, which are file scoped, not package scoped:
#!/usr/bin/perl -w package X; my $name = "foo"; package Y; my $name = "bar"; __END__ "my" variable $name masks earlier declaration in same scope at...
In reply to Re^8: Trying to use App::Fatpacker
by Anonymous Monk
in thread Trying to use App::Fatpacker
by elef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |