- ... You can install a module anywhere you want and use use lib to tell perl where it is: use lib ../modules ; use myModule; AssumingMessage 1 of 2 , Jun 2, 2001View Source<zoom29@...>
: Hi everyone,
: I have been trying for the past 4 hours straight to
: solve this problem so I am now asking for HELP!
: Reading "programming Perl" and "Perl Cookbook", I
: am trying to break my program up using subroutines
: that reside in a common file. Even though right now
: it is not really needed, in a few days the program
: will be too big to handle in one file so I want to
: know how to create modules.
: Does anybody know how to get documentation on
: Makefile.PL so that it will install my module in
: the proper place, or do I always have to copy my
: revisions over to
You can install a module anywhere you want and
use 'use lib' to tell perl where it is:
use lib '../modules';
Assuming myModule.pm is in ../modules.
Charles K. Clarkson
Theology is ignorance
of natural causes reduced to a system
- French nobleman
- ... Thanks that works, but I had to change the package line in the module from package cgibin::reader; to package reader; Your solution is moreMessage 2 of 2 , Jun 2, 2001View Source--- In perl-beginner@y..., "Charles K. Clarkson" <c_clarkson@h...>
> You can install a module anywhere you want andThanks that works, but I had to change the package line in the module
> use 'use lib' to tell perl where it is:
> use lib '../modules';
> use myModule;
> Assuming myModule.pm is in ../modules.
Your solution is more straightforward than using MakeMaker. Thanks.
Another question if I may, regarding filehandles.
I am opening a socket for communication
print TOSERVER "blah blah\n";
and using print STDOUT to display program progess/debug info.
When I run through the debugger, I get the info on the screen I
When I run without the debugger, I don't get output AND I get a
message "print() on closed filehandle......"
I tried changing STDOUT to STDERR but it is the same.