Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

differences in 'use CGI'????? - qw(:standard), CGI::Carp

Status
Not open for further replies.

Oxymoron

Technical User
Dec 17, 2000
168
GB
hey.
After changing a faulty script line from 'use CGI' to 'use CGI qw:)standard)' which worked, I'd just like to know what differences these changes and other attributes which can be attached to the CGI module do?????
could anyone help me understand, or let me know where I can find out??

thankyou all!
JoE we are all of us living in the gutter.
But some of us are looking at the stars.
 
Calling CGI with the ':standard' param tells the module that you want to use the functional (non-OO) interface. This causes the module to export all the functions that you use like [tt]header, start_html, param,[/tt] etc., so that you can call them as functions rather than object methods. The CGI.pm docs explain the difference, also the website of the module's author is here:

The '::Carp' is not a modifier of CGI. CGI::Carp is a completely separate module (read about module naming here It attempts to duplicate the behavior of the Carp module in a CGI environment, i.e. warnings and fatal errors can be sent to the browser instead of stderr.

jaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top