Re: subroutines in seperate files-How do I do it?
- --- 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.