This is a prototype subroutine .
The only one $means that sub will take only one scalar value and will interpret other types using a scalar context. For example, if you pass an array as a parameter, for example. do_it(@array), Perl will not decrypt @arrayto the list, but instead pass the length of the array to the body of the routine.
, Perl , . , Perl . & ( ), , .
- , OO Perl. , . Perl Best Practices .