hi,
I've looked in the archive but somehow my pb isn't solved.
I've started to create a file that will containes a bunch of subroutines
(file called "tools.pl"), which I intend to use later in my upcoming
programs. I wanted to try out the require function, so I just put one
subroutine in the tools.pl file.
pb arrives when I'm using require, I keep getting a "tools.pl did not
return a true value" message. In the archives I noticed that everybody
is saying that "you must not forget to add à '1;' at the end of your file".
I did that, but it didn't change anything. Does any body have an idea of
what I'm doing wrong ?
here's what tools.pl looks like :
#!/usr/bin/perl
sub lectureclient {
my @champs = split /:/, $_[0];
}
1;
main program calls it with :
(...)
require "tools.pl";
(...)
Thanks for your help!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>