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 30.126.920 Times

CGI::Simple 0.079

  Date Added: September 08, 2010  |  Visits: 807

CGI::Simple

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 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
CGI::SIMPLE RELATED
Libraries  -  CGI::WML 0.09
CGI::WML is a Perl module with subclass LDSs "CGI.pm" 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  
Programming  -  CAP::DBIProfile 0.05
The perl module CGI::Application::Plugin::DBIProfile is a plugin for the CGI::Application web application framework. It provides DBI Profile information (see DBI::Profile) as both textual reports and graphed output.
14.01 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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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