error in win32, not in linux?

Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. [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...
    2. 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...
    3. [PHP-DEV] CVS Error on Win32
      --------------------Configuration: php4dllts - Win32 Debug_TS-------------------- Linking... Creating library ..\Debug_TS/php4ts_debug.lib and...
    4. 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...
    5. 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...
  3. #2

    Default Re: error in win32, not in linux?

    Bart van den Burg wrote:

    (snipped)
    > [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], files index.pl, functions.pm and
    > config.pm?
    "Sorry, not gonna show you that file!"

    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

  4. #3

    Default Re: error in win32, not in linux?


    "Purl Gurl" <purlgurl@purlgurl.net> wrote in message
    news:3F60E7EA.70825B91@purlgurl.net...
    > Bart van den Burg wrote:
    >
    > (snipped)
    >
    > > [url]http://bart.tvreclames.nl:8080/showfile.pl[/url], files index.pl, functions.pm
    and
    > > config.pm?
    >
    > "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


    Bart van den Burg Guest

  5. #4

    Default 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

  6. #5

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

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


    Bart van den Burg Guest

  7. #6

    Default Re: error in win32, not in linux?

    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.

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


    Purl Gurl
    Purl Gurl Guest

  8. #7

    Default 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

  9. #8

    Default Re: error in win32, not in linux?


    "Purl Gurl" <purlgurl@purlgurl.net> wrote in message
    news:3F610AE2.A37B55B@purlgurl.net...
    > 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.
    what's this supposed to mean??

    Bart


    Bart van den Burg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139