Ask a Question related to PERL Miscellaneous, Design and Development.
-
Bart van den Burg #1
error in win32, not in linux?
Hi
can someone take a look at:
[url]http://bart.tvreclames.nl:8080/showfile.pl[/url], 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
Bart van den Burg Guest
-
[ODBC] ODBC (win32) X PostgreSQL(Linux)
Hi Fabricio, fbbsantos wrote: I need to know enough that if I sat down at your computer I could find the problem. For example, what... -
call win32 API from linux perl script
Hi, I'm must calling an API from a remote win32 server in a perl script. On a windows server, I use win32::OLE and it's work fine ! But my... -
[PHP-DEV] CVS Error on Win32
--------------------Configuration: php4dllts - Win32 Debug_TS-------------------- Linking... Creating library ..\Debug_TS/php4ts_debug.lib and... -
Undeifined varables give errors on win32 web server but work on linux
I have 2 parallel systems for php development Debian linux with apache and PHP4 and Windows XP professional with apache & PHP4 I have been in... -
generic win32 host error
Generic Win32 host process has encountered an error and needs to close. We're sorry for the inconvenience. Note: KB shows this type of error... -
Purl Gurl #2
Re: error in win32, not in linux?
Bart van den Burg wrote:
(snipped)
"Sorry, not gonna show you that file!"> [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], files index.pl, functions.pm and
> config.pm?
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.
Purl Gurl
--
[url]http://www.purlgurl.net[/url]
Full Perl & Apache Documentation
Purl Gurl Guest
-
Bart van den Burg #3
Re: error in win32, not in linux?
"Purl Gurl" <purlgurl@purlgurl.net> wrote in message
news:3F60E7EA.70825B91@purlgurl.net...and> Bart van den Burg wrote:
>
> (snipped)
>> > [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], files index.pl, functions.pmI changed that now.>> > config.pm?
> "Sorry, not gonna show you that file!"
actually, I just installed apache on this computer, and now I'm trying to>
> 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.
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
Bart van den Burg Guest
-
Jay Tilton #4
Re: error in win32, not in linux?
"Bart van den Burg" <bart-news@NOSPAMtvreclames.nl> wrote:
: can someone take a look at:
:
: [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], 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.
Jay Tilton Guest
-
Bart van den Burg #5
Re: error in win32, not in linux?
----- Original Message -----
From: "Jay Tilton" <tiltonj@erols.com>
Newsgroups: comp.lang.perl.misc
Sent: Friday, September 12, 2003 12:06 AM
Subject: Re: error in win32, not in linux?
and> "Bart van den Burg" <bart-news@NOSPAMtvreclames.nl> wrote:
>
> : can someone take a look at:
> :
> : [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], files index.pl, functions.pmahhh thanks for pointing that out :D> : 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.
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
Bart van den Burg Guest
-
Purl Gurl #6
Re: error in win32, not in linux?
Bart van den Burg wrote:
(snipped)> Jay Tilton> > Bart van den Burg
> > : 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.
Tell me Tilton, can you "see" these nude pictures of
me on my system?
Purl Gurl
Purl Gurl Guest
-
Jay Tilton #7
Re: error in win32, not in linux?
Purl Gurl <purlgurl@purlgurl.net> wrote:
[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?
Jay Tilton Guest
-
Bart van den Burg #8
Re: error in win32, not in linux?
"Purl Gurl" <purlgurl@purlgurl.net> wrote in message
news:3F610AE2.A37B55B@purlgurl.net...what's this supposed to mean??> Bart van den Burg wrote:
>>> > 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.
Bart
Bart van den Burg Guest



Reply With Quote

