in reply to private sub routine

See perlintro, section "Writing subroutines"

You should read the rest of that document too.

Perl 6 - links to (nearly) everything that is Perl 6.