module "Exporter.pm" 
Author Message
 module "Exporter.pm"

Hello ,

I am trying to use the "Exporter.pm"  module in my program.
I need to specify the the complete path "/ap/perl/lib/Extporter.pm" for
this module to be used.
But i get an error

Can anybody help me figure it out.
I use the following line in my code

require  "/ap/perl/lib/Extporter.pm"

I use Solaris 2.5.1 , Perl 5.003

regards

Sriram

  vcard.vcf
< 1K Download


Fri, 13 Apr 2001 03:00:00 GMT  
 module "Exporter.pm"

Quote:

> Hello ,

> I am trying to use the "Exporter.pm"  module in my program.
> I need to specify the the complete path "/ap/perl/lib/Extporter.pm" for
> this module to be used.
> But i get an error



this, one way ti do this is :


use Exporter;

I strongly recommend the book: Advanced Perl Programming by Sriram
Srinivasan published by O'Reilly.

Regards,

Stefaan Onderbeke, an ALCATEL colleague !

Quote:

> Can anybody help me figure it out.
> I use the following line in my code

> require  "/ap/perl/lib/Extporter.pm"

> I use Solaris 2.5.1 , Perl 5.003

> regards

> Sriram

  onderbes.vcf
< 1K Download


Fri, 13 Apr 2001 03:00:00 GMT  
 module "Exporter.pm"

 Thanks for the inputs , well i am now faced with a new error message:
I did the following in the mean while:

I installed Perl version 5.004_04 in the /opt directory ( Upgraded from
5.003. and moved it from /ap/perl -> /usr/local/bin)
So now perl resides in /opt/usr/local/bin/perl.

I now have 2 modules called Bean.pm & Coffee.pm called in Coffee.pl , both
the modules compile without errors.
When i compile the Coffee.pl i get the following error messages along with
the output:

**********************Start of compilation*************************
$ perl  Coffee.pm
$ perl Bean.pm
$  perl Coffee.pl
Possible attempt to separate words with commas at Coffee.pm line 9.
Possible attempt to separate words with commas at Coffee.pm line 11.
                                             Coffee : Instant
                                             Bean : cup->{'Bean'}

                                             Set bean to Mixed
                                             Bean Type is now Mixed
                                            Set coffee type to Instant
                                             Type of Coffee: Instant


$
******************End of Message****************************

I still use the following declaration to compile :

 require '/opt/usr/local/lib/perl5/Exporter.pm' ;

If i dont use the full path i don't get this far.

Any help is appreciated.

Thanks in advance

Sriram

  vcard.vcf
< 1K Download


Sat, 21 Apr 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Need "Universal" exporter.pm File

2. Exporter, strict, and module "my" variable

3. TkPerl5: new module "Flasher.pm"

4. Trouble finding "vars.pm" module

5. format for use "otherlib\\Module.pm";

6. New module/pragma "enum.pm" (was "fields.pm")

7. New module/pragma "enum.pm" (was "fields.pm")

8. "character class ""bug""

9. system(("cp", "-Rf", "/tmp/a/*", "/tmp/b")); doesnt wrk

10. how to parse a "this", "that", "and the ", "other" file

11. Module design question (use Exporter vs require Exporter)

12. Module design question (use Exporter vs require Exporter)

 

 
Powered by phpBB® Forum Software