error in win32, not in linux?

B

Bart van den Burg

Hi

can someone take a look at:

http://bart.tvreclames.nl:8080/showfile.pl, files index.pl, functions.pm and
config.pm?

for some reason, this script works fine in linux, but not in win32 :/

the error i'm getting:

[Thu Sep 11 22:10:51 2003] [error] [client 80.60.202.155] Undefined
subroutine &main::config called at functions.pm line 6.

I really don't understand why this happens in win32...

since this happens both in CGI and from command line, i don't suppose this
is a CGI-specific question, right? otherwise, i'll ask elsewhere.

Thanks in advance
Bart
 
B

Bart van den Burg

Purl Gurl said:
Bart van den Burg wrote:

(snipped)


"Sorry, not gonna show you that file!"

I changed that now.
So why did you list this file only to provide an inane message?
It is rude of you to waste the time of a reader who invests
time and effort to help you, for free.
the error i'm getting:
[Thu Sep 11 22:10:51 2003] [error] [client 80.60.202.155] Undefined
subroutine &main::config called at functions.pm line 6.
I really don't understand why this happens in win32...


Your error message clearly states what is wrong.

Does not "undefined" mean "unknown," "not specified," or
possibly, "not found?"

Actually, none of those files you present will compile
and run, for a very obvious reason.

You need to get your act together.

actually, I just installed apache on this computer, and now I'm trying to
run the site here as well, since it's easier to edit like this. the actual
site is running on a linux box.
So far I only changed the first line of index.pl

of course, the error message is clear, but:

line 4 of functions.pm is "use config;"
so, i suppose it opens config.pm, where it encounters the function "config".
Isn't that enough to define the function? Am I missing something, that linux
perl allows me to miss, but win32 perl not?

Or is it something totally different?

Bart
 
J

Jay Tilton

: can someone take a look at:
:
: http://bart.tvreclames.nl:8080/showfile.pl, files index.pl, functions.pm and
: config.pm?
:
: for some reason, this script works fine in linux, but not in win32 :/
:
: the error i'm getting:
:
: [Thu Sep 11 22:10:51 2003] [error] [client 80.60.202.155] Undefined
: subroutine &main::config called at functions.pm line 6.
:
: I really don't understand why this happens in win32...

Because the Win32 filesystem is case-insensitive.
"use config;" is finding "Config.pm" in another @INC path before it
finds "config.pm" in the current directory.
 
B

Bart van den Burg

----- Original Message -----
From: "Jay Tilton" <[email protected]>
Newsgroups: comp.lang.perl.misc
Sent: Friday, September 12, 2003 12:06 AM
Subject: Re: error in win32, not in linux?

: can someone take a look at:
:
: http://bart.tvreclames.nl:8080/showfile.pl, files index.pl, functions.pm and
: config.pm?
:
: for some reason, this script works fine in linux, but not in win32 :/
:
: the error i'm getting:
:
: [Thu Sep 11 22:10:51 2003] [error] [client 80.60.202.155] Undefined
: subroutine &main::config called at functions.pm line 6.
:
: I really don't understand why this happens in win32...

Because the Win32 filesystem is case-insensitive.
"use config;" is finding "Config.pm" in another @INC path before it
finds "config.pm" in the current directory.

ahhh thanks for pointing that out :D
I guess I'll just have to put the backup on my (slower and more instable)
linux comp :/
probably better anyway, since i wont have to change all the first lines :)

thanks
Bart
 
J

Jay Tilton

[preceding discussion snipped]

: Well gosh, aren't internet mind readers simply amazing?
: We should all have such amazing abilities to look at
: remote file systems with a psychic mind's eye.

No ESP involved. Just a memory of making the same mistake. Seeing a
file named "config.pm" involved in the problem raised a red flag.

: Tell me Tilton, can you "see" these nude pictures of
: me on my system?

Are you trying to seduce me, Mrs. Robinson?
 
B

Bart van den Burg

Purl Gurl said:
Bart said:
Jay Tilton
Bart van den Burg
(snipped)
: can someone take a look at:
: [Thu Sep 11 22:10:51 2003] [error] [client 80.60.202.155] Undefined
: subroutine &main::config called at functions.pm line 6.
: I really don't understand why this happens in win32...
Because the Win32 filesystem is case-insensitive.
"use config;" is finding "Config.pm" in another @INC path before it
finds "config.pm" in the current directory.
ahhh thanks for pointing that out :D


Well gosh, aren't internet mind readers simply amazing?
We should all have such amazing abilities to look at
remote file systems with a psychic mind's eye.

what's this supposed to mean??

Bart
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,138
Messages
2,570,804
Members
47,349
Latest member
jojonoy597

Latest Threads

Top