Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Same is different?

by DrZaius (Monk)
on May 29, 2001 at 19:26 UTC ( #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.


Comment on Re: Same is different?
Select or Download Code
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
Node Status?
node history
Node Type: note [id://83979]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-08-30 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls