Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Problems? Is your data what you think it is?
 
PerlMonks  

install CGI qw(:standard escapeHTML) at bluehost..com

by DrGo (Initiate)
on Sep 02, 2011 at 19:38 UTC ( #923915=perlquestion: print w/ replies, xml ) Need Help??
DrGo has asked for the wisdom of the Perl Monks concerning the following question:

I am setting up a web site that uses the paypal.pl script. The script says it requires CGI qw(:standard escapeHTML). Blue host has a thingy to install perl scripts but this script is not found. I searched CPAN for it (anything with the letters qw) and did not find it. http://www.cpan.org/modules/01modules.index.html I found lots of hits on scripts using this module so it must exist - here are the lines in the paypal.pl script # Modules use CGI::Carp; use CGI qw(:standard escapeHTML); use LWP::UserAgent; My question - how do I find CGI qw(:standard escapeHTML) so I can install it?

Comment on install CGI qw(:standard escapeHTML) at bluehost..com
Re: install CGI qw(:standard escapeHTML) at bluehost..com
by roboticus (Canon) on Sep 02, 2011 at 19:49 UTC

    DrGo:

    You just need to install the CGI module. The "qw(...)" bit is just telling CGI which functions to import into your namespace. (Or something like that.) Check perlmod and company for details.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

      Hmm. BlueHost lists a bunch of CGI:: modules that are available. I thought I needed to see CGI qw or something like that. There are many CGI:: modules installed at BlueHost. Maybe that means I don't need to do anything special for qw? Is there a way to test that easily? Thanks, Tom aka DrGo

        qw is not a module. It is Perl syntax. See perlop on the "Quotes and Quote-like Operators". qw is a quote-like operator, like ', ", q and qq.

Re: install CGI qw(:standard escapeHTML) at bluehost..com
by ww (Bishop) on Sep 02, 2011 at 21:29 UTC
    No offense intended (most of us were born without any knowledge of Perl), but...
    for your own protection... and the protection of anyone using your site, please, before you commit to doing business using Perl, Paypal, and the web, read enough about Perl that you have some clue about its basics.

    Some suggestions:

    1. Learning Perl
    2. Getting Started with Perl (on site Tutorial)
    3. Web Programming (on site Tutorial)

    It would also be well to read the directions at the text input box as they pertain to formatting questions here -- roughly, use <c> ... </c> around your ... data

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-04-17 01:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls