Hi,
You can write the sub function in another file and include it on the main perl script.
mail.pl
-------
#!/usr/bin/perl
sub_file.pl;
---
---
_END_;
sub_file.pl
-----------
#!/usr/bin/perl
sub fn
{
}
1;
Regards
C.M
[EMAIL PROTECTED]
.au To: [EMAIL PROTECTED]
cc:
11/15/03 11:38 AM Subject: external sub routine
I have a some code that will be used in a number of my scripts, I know
that if I have a sub in a script I can call that piece of code as many
times as required from the same script but how do I make this sub
vailable to other scripts I have written. I imagine that I create a
seperate script with this code and somehow include this or call it.
Any help appreciated thanks.
--
Regards
David Inglis
0408502342
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]