in reply to Re: private sub routine
in thread private sub routine
Is perlmonks an interview? Do we apply for a job?
You're thinking of "private" like in Java and most of the others of "private" like in lexical variables.
BTW: Googling for "private function" and "perl" quickly leads to perlmod
# here's a file-private function as a closure, # callable as &$priv_func; it cannot be prototyped. my $priv_func = sub { # stuff goes here. };
So why do we answer a question which can be easily resolved with googling???
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: private sub routine
by Marshall (Canon) on Sep 03, 2009 at 01:07 UTC | |
by ig (Vicar) on Sep 03, 2009 at 11:29 UTC | |
by Marshall (Canon) on Sep 07, 2009 at 23:40 UTC | |
by LanX (Saint) on Sep 08, 2009 at 09:43 UTC |