Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Same is different?

by DrZaius (Monk)
on May 29, 2001 at 19:26 UTC ( [id://83979]=note: print w/replies, xml ) Need Help??


in reply to Same is different?

Does this mean that CGI isn't always with you if you are trying to build a portable system?

This is complete theory, but merlyn suggested in a previous node that in the worst case you can include the contents of CGI in a BEGIN block.

If there are platform specific variables, this means you have to change your code for different platforms.

Same deal with use lib.

Replies are listed 'Best First'.
Re: Re: Same is different?
by BooK (Curate) on May 29, 2001 at 19:39 UTC

    I think this mostly means I am a stupid wheening moron... :-S

    In my obfuscated code, I assumed that the same version of CGI.pm would be identical (except for line-endings) on every platform Perl runs on. This is false. But the differences are in fact very tiny (a few lines), and mostly regard configuration parameters, which actually and naturally change between platforms and installs.

    I think the Perl core (and CGI is part of the standard distribution) is you best bet at portable code. This doesn't include Obfuscation, that's all... :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-28 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found