Greetings!

I found the source of the "impossible error".  Here are the lines that
caused it:

        my $userList = new UserList($userFile);
        my $user = UserList->GetUser($logname);

I have a "use UserList" line near the top of this file.  I also have
"use strict" and "use warnings".  

I would have expected Perl to complain about the bareword "UserList" in
the second line, or find some other way to complain about it.  Instead,
it merrily tried to execute this line, and threw the error message
halfway through the GetUser() function in the UserList package.  Why
didn't an error get thrown?  If this is a valid construct in Perl, how
is it supposed to be used?

Thanks again!

Rob Richardson


        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

-- 
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