in reply to Comment blocks & private methods
Beside leading underscore convention real private methods are introduced in newer Perl5 versions via my , all older allow putting a function ref into a private var.
my $private = sub { print "privat" }; $private->();
All this has been extensively discussed in the past, did you try searching the archives?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
¹)
<<___; bla bla bla ___
²)
print "huhu"; =for doc bla bla bla =cut print "haha";
|
|---|