Re: Finding if a module is already 'require'd

2002-09-30 Thread david
Ramprasad A Padmanabhan wrote: > > > How do I find in a function if a particular module is already loaded > > for eg, > > sub mysub { > my @vars = @_; > require Data::Dumper unless ( already_required('Data::Dumper')); > print Data::Dumper::Dumper(\@vars); > } > > I want help writing the func

Re: Finding if a module is already 'require'd

2002-09-30 Thread Jenda Krynicky
From: Ramprasad A Padmanabhan <[EMAIL PROTECTED]> > How do I find in a function if a particular module is already loaded Look at the %INC hash. Jenda === [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == There is a reason for living. There must be. I've seen it s

RE: Finding if a module is already 'require'd

2002-09-30 Thread NYIMI Jose (BMB)
> -Original Message- > From: Janek Schleicher [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 10:05 AM > To: [EMAIL PROTECTED] > Subject: Re: Finding if a module is already 'require'd > > > Ramprasad A Padmanabhan wrote at Mon, 30 Sep 20

Re: Finding if a module is already 'require'd

2002-09-30 Thread Janek Schleicher
Ramprasad A Padmanabhan wrote at Mon, 30 Sep 2002 09:36:50 +0200: > How do I find in a function if a particular module is already loaded > > for eg, > > sub mysub { > my @vars = @_; > require Data::Dumper unless ( already_required('Data::Dumper')); > print Data::Dumper::Dumper