Chris Rogers wrote:
> Just create a separate file to hold your "library" routines. You may name
> the file anything you like. Be sure to put the line:
>
Good advice. It is a good idea to use a .pm extension, and to have a package name
identical to the base name:
file: rjnWeb.pm
in script:
pa
"Shishir K. Singh" <[EMAIL PROTECTED]> writes:
> Hello,
>
> How can I divide my perl program in different files(in other
> words..move the sub routines in different files ) and then do an
> include in the mail perl file. The reason why I want to do this is
> because my main program is growing day
Thanks to everyone, it works.
-Original Message-
From: Chris Rogers [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 4:58 PM
To: Shishir K. Singh; [EMAIL PROTECTED]
Subject: RE: Divide Perl script
Just create a separate file to hold your "library" routines. You ma
Just create a separate file to hold your "library" routines. You may name
the file anything you like. Be sure to put the line:
#!/usr/bin/perl
at the top of the file (changing it to match where your version of perl is
installed). I also put a:
1;
on the next line to keep perl from bombing ou