in reply to Scripts with only sub-routines?

There are a number of ways that a program can actually do something without any obvious subroutine calls.

use Module; loads that module, and calls the sub import in that module. You can do things there. (This happens at compile time.

When you have a sub called BEGIN, INIT, CHECK or END it is automatically invoced, either at compile time, after the program has terminated (or more obscure times. See perlsub for more details).

If you're new to perl (which is not spelled PERL btw.) it might be that you don't recognize a sub call even though there is one. In many cases just the name of the sub without any parenthesis is enough to call it.

Replies are listed 'Best First'.
Re^2: Scripts with only sub-routines?
by kehansen (Novice) on Mar 24, 2008 at 21:10 UTC
    Thank you. I will look in the modules called by the 'use' statements and review them further. BTW. This is my first time using this site. It looks like it will be very helpful. In my job I have to support & create scripts in sh, bash, ksh, csh, expect, and perl so I don't get dedicated time in a single language. In my perl coding I have not used modules very much. I did just post the code in this thread.