Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.270.487 Times

CGI::Simple 0.079

  Date Added: September 08, 2010  |  Visits: 1.196

CGI::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (103 downloads)



CGI::Simple is a simple totally OO CGI interface that is CGI.pm compliant. SYNOPSIS use CGI::Simple; $CGI::Simple::POST_MAX = 1024; # max upload via post default 100kB $CGI::Simple::DISABLE_UPLOADS = 0; # enable uploads $q = new CGI::Simple; $q = new CGI::Simple( { foo=>1, bar=>[2,3,4] } ); $q = new CGI::Simple( foo=1&bar=2&bar=3&bar=4 ); $q = new CGI::Simple( *FILEHANDLE ); $q->save( *FILEHANDLE ); # save current object to a file as used by new @params = $q->param; # return all param names as a list $value = $q->param(foo); # return the first value supplied for foo @values = $q->param(foo); # return all values supplied for foo %fields = $q->Vars; # returns untied key value pair hash $hash_ref = $q->Vars; # or as a hash ref %fields = $q->Vars("|"); # packs multiple values with "|" rather than " "; @keywords = $q->keywords; # return all keywords as a list $q->param( foo, some, new, values ); # set new foo values $q->param( -name=>foo, -value=>bar ); $q->param( -name=>foo, -value=>[bar,baz] ); $q->param( foo, some, new, values ); # append values to foo $q->append( -name=>foo, -value=>bar ); $q->append( -name=>foo, -value=>[some, new, values] ); $q->delete(foo); # delete param foo and all its values $q->delete_all; # delete everything $files = $q->upload() # number of files uploaded @files = $q->upload(); # names of all uploaded files $filename = $q->param(upload_file) # filename of uploaded file $mime = $q->upload_info($filename,mime); # MIME type of uploaded file $size = $q->upload_info($filename,size); # size of uploaded file my $fh = $q->upload($filename); # get filehandle to read from while ( read( $fh, $buffer, 1024 ) ) { ... } # short and sweet upload $ok = $q->upload( $q->param(upload_file), /path/to/write/file.name ); print "Uploaded ".$q->param(upload_file)." and wrote it OK!" if $ok; $decoded = $q->url_decode($encoded); $encoded = $q->url_encode($unencoded); $escaped = $q->escapeHTML(<>"&); $unescaped = $q->unescapeHTML(<>"&); $qs = $q->query_string; # get all data in $q as a query string OK for GET $q->no_cache(1); # set Pragma: no-cache + expires print $q->header(); # print a simple header # get a complex header $header = $q->header( -type => image/gif -nph => 1, -status => 402 Payment required, -expires =>+24h, -cookie => $cookie, -charset => utf-7, -attachment => foo.gif, -Cost => $2.00 ); # a p3p header (OK for redirect use as well) $header = $q->header( -p3p => policyref="http://somesite.com/P3P/PolicyReferences.xml ); @cookies = $q->cookie(); # get names of all available cookies $value = $q->cookie(foo) # get first value of cookie foo @value = $q->cookie(foo) # get all values of cookie foo # get a cookie formatted for header() method $cookie = $q->cookie( -name => Password, -values => [superuser,god,my dog woofie], -expires => +3d, -domain => .nowhere.com, -path => /cgi-bin/database, -secure => 1 ); print $q->header( -cookie=>$cookie ); # set cookie print $q->redirect(http://go.away.now); # print a redirect header dienice( $q->cgi_error ) if $q->cgi_error; CGI::Simple provides a relatively lightweight drop in replacement for CGI.pm. It shares an identical OO interface to CGI.pm for parameter parsing, file upload, cookie handling and header generation. This module is entirely object oriented, however a complete functional interface is available by using the CGI::Simple::Standard module. Essentially everything in CGI.pm that relates to the CGI (not HTML) side of things is available. There are even a few new methods and additions to old ones! If you are interested in what has gone on under the hood see the Compatibility with CGI.pm section at the end. In practical testing this module loads and runs about twice as fast as CGI.pm depending on the precise task..

Requirements: No special requirements
Platforms: Linux
Keyword: Cgi Cgi Pm Cgisimple Cookie Foo Header Libraries Oo Cgi Param Programming Upload Values
Users rating: 0/10

License: Freeware Size: 84.99 KB
USER REVIEWS
More Reviews or Write Review


CGI::SIMPLE RELATED
Server Tools  -  Fastream IQ Web/FTP Server 11.3.6R
Secure, ultra-fast FTP server and robust multi-threaded Web server for Windows 2000/XP/2003/Vista, featuring XML-based GUI remote 2-level administration scheme, CGI/ISAPI, separate upload/download speed limits, storage quotas, dynamic DNS, and...
5.6 KB  
Libraries  -  CGI::XMLForm 0.10
CGI::XMLForm is a Perl extension of CGI.pm which reads/generates formated XML. NB: This is a subclass of CGI.pm, so can be used in its place. SYNOPSIS use CGI::XMLForm; my $cgi = new CGI::XMLForm; if ($cgi->param) { print $cgi->header,...
14.34 KB  
Libraries  -  CGI::Minimal 1.25
CGI::Minimal is a lightweight CGI form processing package. SYNOPSIS # use CGI::Minimal qw(:preload); use CGI::Minimal; my $cgi = CGI::Minimal->new; if ($cgi->truncated) { &scream_about_bad_form; exit; } my $form_field_value =...
29.7 KB  
Libraries  -  CGI::Expand 2.02
CGI::Expand is a Perl module that can convert flat hash to nested data using TT2s dot convention. SYNOPSIS use CGI::Expand; use CGI; # or Apache::Request, etc. $args = expand_cgi( CGI->new(a.0=3&a.2=4&b.c.0=x) ); # $args = { a =>...
8.19 KB  
Libraries  -  Class::CGI 0.20
Class::CGI is a Perl module to fetch objects from your CGI object. SYNOPSIS use Class::CGI handlers => { customer_id => My::Customer::Handler }; my $cgi = Class::CGI->new; my $customer = $cgi->param(customer_id); my $name =...
17.41 KB  
Libraries  -  AnnoCPAN::XMLCGI 0.22
AnnoCPAN::XMLCGI is a Perl module to read XML input through a CGI.pm-like interface. SYNOPSYS use AnnoCPAN::XMLCGI; my $cgi = AnnoCPAN::XMLCGI->new; my $name = $cgi->param(name); print $cgi->header; print "Hello, $name!n"; # Hello, Bob!...
79.87 KB  
Network & Internet  -  xhtmldbg 0.8.13
xhtmldbg is a Website Debugger application. Note: currently xhtmldbg can only debug CGI GET requests reply POST data not supported and will done at next releases. Here are some key features of "xhtmldbg": ?*A* Real XHTML...
829.44 KB  
Libraries  -  Class::DBI::Plugin::FilterOnClick 1.0
Class::DBI::Plugin::FilterOnClick is a Perl module to generate browsable and searchable HTML Tables using FilterOnClick in conjunction with Class::DBI. SYNOPSIS # Inside of your sub-class of Class::DBI add these lines: use...
24.58 KB  
Libraries  -  PDL::IO::FITS 2.4.3
PDL::IO::FITS Perl module offers a simple FITS support for PDL. SYNOPSIS use PDL; use PDL::IO::FITS; $a = rfits(foo.fits); # read a FITS file $a->wfits(bar.fits); # write a FITS file This module provides basic FITS support for PDL, in...
2.1 MB  
Programming  -  Data::DRef 1999.0206
Data::DRef is a Perl module that provides a streamlined interface for accessing values within nested Perl data structures. These structures are generally networks of hashes and arrays, some of which may be blessed into various classes, containing...
10.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB