Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 contemplating the Monastery: (6)
As of 2014-10-22 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls