Re: How to pass parameters to a module

2003-09-29 Thread Juris
Hi! It's easy! There is one sample: sub do_somethig { my @[EMAIL PROTECTED]; if (! ($passed_params[0])) { print "Not passed parametrs" } my @lines; #Do something ... return @lines; } On Thu, 25 Sep 2003 21:59:53 -0700, Rajesh Dorairajan <[EMAIL PROTECTED]>

RE: How to pass parameters to a module

2003-09-26 Thread Hanson, Rob
--Original Message- From: Rajesh Dorairajan [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 1:00 AM To: '[EMAIL PROTECTED]' Subject: How to pass parameters to a module Can someone explain how does one pass a parameter to a Perl Module? To illustrate suppose I've My::Modul

Re: How to pass parameters to a module

2003-09-26 Thread Ramprasad A Padmanabhan
Rajesh Dorairajan wrote: Can someone explain how does one pass a parameter to a Perl Module? To illustrate suppose I've My::Module package My::Module; BEGIN { $scalar = $input; } use Exporter; our @ISA = qw(Exporter); our @EXPORT = ($scalar); In the above script is there anyway to pass the $inpu

How to pass parameters to a module

2003-09-26 Thread Rajesh Dorairajan
Can someone explain how does one pass a parameter to a Perl Module? To illustrate suppose I've My::Module package My::Module; BEGIN { $scalar = $input; } use Exporter; our @ISA = qw(Exporter); our @EXPORT = ($scalar); In the above script is there anyway to pass the $input variable to the pack