Re: Problem with package

2005-09-20 Thread Todd W
"Charles K. Clarkson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In script: > #!/usr/bin/perl > > use strict; > use warnings; > > use lib '.'; > use Inn; > Not trying to be pedantic but just want to add here, the current directory is set in @INC by default when perl is compile

Re: Problem with package

2005-09-15 Thread Bob Showalter
Bob Showalter wrote: You can't use return outside of a sub. The normal idiom is a bare 1 to provide a true result for require(). I'm wrong. You _can_ return from a "do FILE" construct. So there shouldn't be an error. (suggest you remove the "return" anyway; it isn't normally used in that situ

Re: Problem with package

2005-09-15 Thread Luinrandir
there must be a problem with my web host. cause now I can't even run the program. Lou - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: Sent: Thursday, September 15, 2005 6:49 PM Subject: RE: Problem with package > Luinrandir <mail

RE: Problem with package

2005-09-15 Thread Charles K. Clarkson
Luinrandir wrote: : package Inn; : : BEGIN : {} : : END : {} : : return 1; : : : An error comes up when I include the END{} but not the BEGIN{} Which error are you getting? I don't get any errors. In './Inn.pm': package Inn; BEGIN{} END {} return 1; _

Re: Problem with package

2005-09-15 Thread Bob Showalter
Luinrandir wrote: package Inn; BEGIN {} END {} return 1; An error comes up when I include the END{} but not the BEGIN{} any clues? Er, WTF are you trying to do? What is the error? You can't use return outside of a sub. The normal idiom is a bare 1 to provide a true result for require().

Problem with package

2005-09-15 Thread Luinrandir
package Inn; BEGIN {} END {} return 1; An error comes up when I include the END{} but not the BEGIN{} any clues? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]