use strict; use warnings; INIT{ package Mypackage; use strict; use warnings; our $privateFunc = sub { print "Private parts - do not touch\n"; } } # End of package #We are now OUTSIDE. $Mypackage::privateFunc->();
..to maintain is to slowly feel your soul, sanity and sentience ebb away as you become one with the Evil.
In reply to Re: test case for private function in module
by NetWallah
in thread test case for private function in module
by minhtuanht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |