Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

How Do I Turn Custom Modules into CGI Script?

by socrtwo (Sexton)
on Aug 06, 2009 at 16:27 UTC ( [id://786499]=perlquestion: print w/replies, xml ) Need Help??

socrtwo has asked for the wisdom of the Perl Monks concerning the following question:

I have a web service which which extracts the text from OOXML and ODF files. I have some extra codes which provides another method for extracting the data from XLSX files and converting it to CSV files. However the code uses two custom Perl modules, which I don't think my web hoster will want to install.

What is the best way to convert modules to Perl script? Is it just to make the sections of the modules used, into subroutines?

  • Comment on How Do I Turn Custom Modules into CGI Script?

Replies are listed 'Best First'.
Re: How Do I Turn Custom Modules into CGI Script?
by nedals (Deacon) on Aug 06, 2009 at 17:07 UTC
    use lib is your friend.
    use lib "/path/to/modules/";
      Sounds like a very valuable comment that newbie like me needs to hear :-).
Re: How Do I Turn Custom Modules into CGI Script?
by metaperl (Curate) on Aug 06, 2009 at 16:52 UTC
    Can you copy them into your web tree somewhere?

    Also, I think its best to get a hosting service where you have full control of what is installed and free yourself from the control of others.

      I know it's not so cool to name names, but are there any you would recommend? This sounds like an unusual hosting arrangement. For instance is DreamHost a company like this?
        Not exactly, but they were very cooperative about installing modules beyond those on their basic list. (FWIW, my experience w/DreamHost was pretty good except for some horrors in assuming responsibility for a client's site -- for which the client had neglected to obtain account-change authority or passwords from a webmaster who subsequently went AWOL).

        But other hosting providers are also cooperative; since we have named one name, here's another: HostRocket which is generous with shell access, as well.

        Turning back to metaperl's "full control" suggestion: that phrase implies, to me, a dedicated server. That's considerably more expensive than shared hosting, but is frequently well worth the cost (of course, the reverse is also often true).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found