I've been manipulating an old file while the main program was loading
different one... so no matter how hard I try, the program still load a
bad file

I hate it when I do stupid things like that

sorry for wasting your time over a stupid error, and thanks again for
helping me!

John Doe wrote:
> gui am Mittwoch, 17. August 2005 14.53:
> 
>>hi,
> 
> [...]
> 
>>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".
> 
> 
> correct.
> 
> 
>>I did that, but it didn't change anything. Does any body have an idea of
>>what I'm doing wrong ?
> 
> 
> I could require it without any error message...
> And if I place tools.pl in a directory not contained in @INC, the error 
> message is different...
> 
> 
>>here's what tools.pl looks like :
>>
>>
>>#!/usr/bin/perl
> 
> 
>       use strict;
>       use warnings;
> 
> 
>>sub lectureclient {
>>        my @champs = split /:/, $_[0];
>>}
>>
>>1;
>>
>>main program calls it with :
> 
> 
> 
>       use strict;
>       use warnings;
> 
> 
>>(...)
>>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>


Reply via email to