Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

install CGI qw(:standard escapeHTML) at

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 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. I found lots of hits on scripts using this module so it must exist - here are the lines in the 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

Replies are listed 'Best First'.
Re: install CGI qw(:standard escapeHTML) at
by roboticus (Chancellor) on Sep 02, 2011 at 19:49 UTC


    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.


    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
by ww (Archbishop) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://923915]
Approved by ww
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2018-04-23 22:22 GMT
Find Nodes?
    Voting Booth?