Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Problem with internet explorer.Mozilla firefox,beonex,netscape ok.

by nobull (Friar)
on Mar 27, 2005 at 16:51 UTC ( [id://442641]=note: print w/replies, xml ) Need Help??


in reply to Problem with internet explorer.Mozilla firefox,beonex,netscape ok.

BEGIN { unshift @INC, "./Modules"; }

What do you think is the purpose of this? (I suspect it has none).

More information about this error may be available in the server error log.

Well was it?

  • Comment on Re: Problem with internet explorer.Mozilla firefox,beonex,netscape ok.
  • Download Code

Replies are listed 'Best First'.
Re^2: Problem with internet explorer.Mozilla firefox,beonex,netscape ok.
by jhourcle (Prior) on Mar 28, 2005 at 02:03 UTC
    BEGIN { unshift @INC, "./Modules"; }

    What do you think is the purpose of this? (I suspect it has none).

    It's roughly the equivalent of

    use lib './Modules';

    It's quite common for times when you're on a multi-user system, and you don't have access to install modules in the main include directories. See perldoc lib for more information.

Re^2: Problem with internet explorer.Mozilla firefox,beonex,netscape ok.
by Pescador (Novice) on Mar 27, 2005 at 17:00 UTC
    I think it was for have access to the directory... wrong... doesn't needed :) thanks server error log says...

    malformed header from script. Bad header=</body></html>: say_hello.cgi, referer: http://localhost/cgi-bin/say_hello.cgi

      sub start_parser { my @resp = (); if (!param()){ push @resp, &Modules::Htmlpage::make_header("Hello first page."); push @resp, &Modules::Htmlpage::make_first_page(); } elsif (param('get_in')){ push @resp, &Modules::Htmlpage::make_header("I say hello to you.") +; push @resp, &Modules::Htmlpage::make_top_content("home"); } push @resp, end_html; return @resp; }

      If param() is true (i.e. there are parameters in the HTTP request) and param('get_in') is false (i.e. there isn't a get_in parameter or is was '' or '0') then start_parser() will just return '</body></html>'.

      Fix it so that it returns an appropriate valid CGI response under these circumstances.

      BTW: Do you know what the special &-prefixed subroutine call syntax does? If not then don't use it. If so, why you think you need it?

      Update: Fixed spurious ! typo.

        Just to help the newbies, when you call a function just with &foo the values in @_ are used as arguments to the function. This leads to some weird results.

        So, when you just want to call a function, use foo().

        Alberto Simões

        !param() is true (i.e. there -> aren't <- parameters in the HTTP request).

        Maybe i should read better ;) &-prefixed subroutines...

        !param() is true (i.e. there aren't parameters in the HTTP request)

        About &-prefixed .. it seems that a should read better ... :(

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442641]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-24 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found