in reply to test case for private function in module
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: test case for private function in module
by Anonymous Monk on Apr 05, 2009 at 04:56 UTC |