in reply to Re: Cross-Platform code
in thread Cross-Platform code

Perhaps you should use the $^O special variable instead, since it doesn't depend on a CGI environment.
It contains a descriptive name for the OS (e.g. "MSWin32" under Windows).


acid06
perl -e "print pack('h*', 16369646), scalar reverse $="

Replies are listed 'Best First'.
Re^3: Cross-Platform code
by glasswalk3r (Friar) on Feb 06, 2006 at 18:28 UTC

    Or you can use the Config module, if you need more information about the system.

    If you're using regular CGI's (and doesn't need mod_perl) you can use Cygwin at the Windows station, without problems. You will avoid annoyances with IIS, permissions or registry. But if you need mod_perl, just forget about. I recently (two weeks ago) had tried to use Apache 2 with Cygwin and it just didn't worked. Looking for answer at Google brought info related to wrong compilation problem and, well... I quit trying!

    Alceu Rodrigues de Freitas Junior
    ---------------------------------
    "You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
Re^3: Cross-Platform code
by GhodMode (Pilgrim) on Feb 06, 2006 at 03:23 UTC
    Dude!! You Rock!! That's what I was looking for in the first place :)
    --
    -- GhodMode