http://qs1969.pair.com?node_id=529733


in reply to Re^2: How Do I Bundle Perl Modules and Their Tests Into the Same File?
in thread How Do I Bundle Perl Modules and Their Tests Into the Same File?

Before of after the =begin..=cut, it doesn't matter. When used as a module, =begin..=cut is just a comment, so it's ignored. When used as a script (to test the module), the 1; isn't needed since it's not a module.