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

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

Serving Software Downloads in 976 Categories, Downloaded 32.292.489 Times

CGI::Simple 0.079

  Date Added: September 08, 2010  |  Visits: 836


Report Broken Link
Printer Friendly Version

Product Homepage
Download (75 downloads)

CGI::Simple is a simple totally OO CGI interface that is 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/ ); 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=" ); @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 =>, -path => /cgi-bin/database, -secure => 1 ); print $q->header( -cookie=>$cookie ); # set cookie print $q->redirect(; # print a redirect header dienice( $q->cgi_error ) if $q->cgi_error; CGI::Simple provides a relatively lightweight drop in replacement for It shares an identical OO interface to 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 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 section at the end. In practical testing this module loads and runs about twice as fast as 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
Libraries  -  CGI::WML 0.09
CGI::WML is a Perl module with subclass LDSs "" for WML output and WML methods. SYNOPSIS use CGI::WML; $query = new CGI::WML; $content = $query->p("Hello WAP world"); print $query->header(), $query->start_wml(),...
21.5 KB  
Libraries  -  CGI::Application::Plugin::Authorization 0.05
CGI::Application::Plugin::Authorization is an authorization framework for CGI::Application. SYNOPSIS use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; use CGI::Application::Plugin::Authorization; # default config...
17.41 KB  
Libraries  -  CGI::Application::Plugin::Authentication::Driver 0.11
CGI::Application::Plugin::Authentication::Driver is a Perl base module for building driver clasees for CGI::Application::Plugin::Authentication. SYNOPSIS package CGI::Application::Plugin::Authentication::Driver::MyDriver; use base...
47.1 KB  
Libraries  -  CGI::Application::Plugin::Authentication::Store 0.11
CGI::Application::Plugin::Authentication::Store is a base module for building storage classes for the CGI::Application::Plugin::Authentication plugin. SYNOPSIS package CGI::Application::Plugin::Authentication::Store::MyStore; use base...
47.1 KB  
Libraries  -  CGI::Application::Magic 1.21
CGI::Application::Magic is a template based framework for CGI applications. SYNOPSIS package WebApp ; use base CGI::Application::Magic ; # optional runmethod sub RM_myRunMmode { ... do_something_useful ... ... no_need_to_set_page ......
34.82 KB  
Libraries  -  CGI::FormMagick 0.89
CGI::FormMagick is a Perl module to easily create CGI form-based applications. SYNOPSIS use CGI::FormMagick; my $f = new CGI::FormMagick(); # all options available to new() my $f = new CGI::FormMagick( type => file, source =>...
75.78 KB  
Libraries  -  CGI::Request 2.0b1
CGI::Request is a parse client request via a CGI interface. SYNOPSIS use CGI::Request; # Simple interface: (combines SendHeaders, new and import_names) $req = GetRequest($pkg); print FmtRequest(); # same as: print $req->as_string #...
122.88 KB  
Libraries  -  CGI::Wiki::Kwiki 0.59
CGI::Wiki::Kwiki is an instant wiki built on CGI::Wiki. A simple-to-use front-end to CGI::Wiki. It can be used for several purposes: to migrate from a CGI::Kwiki wiki (its original purpose), to provide a quickly set up wiki that can later be...
25.6 KB  
Libraries  -  CGI::SecureState 0.36
CGI::SecureState is a transparent, secure statefulness for CGI programs. SYNOPSIS use CGI::SecureState; my @memory = qw(param1 param2 other_params_to_remember); my $cgi = new CGI::SecureState(-stateDir => "states", -mindSet => forgetful,...
20.48 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  
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 3.15.3
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