king <> wrote:
> How and what should be used to define a local variable and a global
> variable as well.
A local() variable *is* a global variable in Perl.
See:
"Coping with Scoping":
http://perl.plover.com/FAQs/Namespaces.html
> and if i have used a sub-routine in a script and i want to use that
> sub-routine in another script,
> how can i do that.
By using a "module":
perldoc -q module
What modules and extensions are available for Perl? What is CPAN?
What does CPAN/src/... mean?
How do I find which modules are installed on my system?
How do I create a module?
How do I install a module from CPAN?
How do I keep my own module/library directory?
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas