I have a subroutine called debug I use in my code. It basically allows me to see what\'s going on, etc.
debug
sub debug { my $message = shift
You have to declare the same prototype when you define your subroutine:
sub debug($;$); # prototype/declare ... meat of the program ... sub debug($;$) { ... }