minhtuanht has asked for the wisdom of the Perl Monks concerning the following question:
Now, when I want to create a test case for this. I don't know how to declare such lexical variable in the test script, since it is supposed not to be access from outsider, including the test script.my $privateFunc = sub { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: test case for private function in module
by Marshall (Canon) on Apr 05, 2009 at 06:24 UTC | |
|
Re: test case for private function in module
by ikegami (Patriarch) on Apr 05, 2009 at 06:00 UTC | |
by ack (Deacon) on Apr 08, 2009 at 21:54 UTC | |
|
Re: test case for private function in module
by NetWallah (Canon) on Apr 05, 2009 at 04:32 UTC | |
by Anonymous Monk on Apr 05, 2009 at 04:56 UTC | |
|
Re: test case for private function in module
by Anonymous Monk on Apr 05, 2009 at 03:08 UTC |