http://qs1969.pair.com?node_id=279099


in reply to How do I save the result of POST to a file?

You can use require to emulate use. To get the same behaviuor as use Module you need to say:

BEGIN { require MODULE; import MODULE LIST; }

To get the same behaviour as use MODULE () you need to say:

BEGIN { require MODULE; }

This way you should be able to use cpan:://CGI module. If the module requires a more recent version of Perl, try looking for an older version, or for cgi-lib.pl, which is not maintained anymore but is still available around the web.

Hope this helps!

Michele.