1AppConfig::CGI(3) User Contributed Perl Documentation AppConfig::CGI(3)
2
3
4
6 AppConfig::CGI - Perl5 module for processing CGI script parameters.
7
9 use AppConfig::CGI;
10
11 my $state = AppConfig::State->new(\%cfg);
12 my $cgi = AppConfig::CGI->new($state);
13
14 $cgi->parse($cgi_query);
15 $cgi->parse(); # looks for CGI query in environment
16
18 AppConfig::CGI is a Perl5 module which implements a CGI interface to
19 AppConfig. It examines the QUERY_STRING environment variable, or a
20 string passed explicitly by parameter, which represents the additional
21 parameters passed to a CGI query. This is then used to update variable
22 values in an AppConfig::State object accordingly.
23
24 AppConfig::CGI is distributed as part of the AppConfig bundle.
25
27 USING THE AppConfig::CGI MODULE
28 To import and use the AppConfig::CGI module the following line should
29 appear in your Perl script:
30
31 use AppConfig::CGI;
32
33 AppConfig::CGI is used automatically if you use the AppConfig module
34 and create an AppConfig::CGI object through the cgi() method.
35 AppConfig::CGI is implemented using object-oriented methods. A new
36 AppConfig::CGI object is created and initialised using the new()
37 method. This returns a reference to a new AppConfig::CGI object. A
38 reference to an AppConfig::State object should be passed in as the
39 first parameter:
40
41 my $state = AppConfig::State->new();
42 my $cgi = AppConfig::CGI->new($state);
43
44 This will create and return a reference to a new AppConfig::CGI object.
45
46 PARSING CGI QUERIES
47 The parse() method is used to parse a CGI query which can be specified
48 explicitly, or is automatically extracted from the "QUERY_STRING" CGI
49 environment variable. This currently limits the module to only
50 supporting the GET method.
51
52 See AppConfig for information about using the AppConfig::CGI module via
53 the cgi() method.
54
56 Andy Wardley, "<abw@wardley.org<gt">
57
59 Copyright (C) 1997-2007 Andy Wardley. All Rights Reserved.
60
61 Copyright (C) 1997,1998 Canon Research Centre Europe Ltd.
62
63 This module is free software; you can redistribute it and/or modify it
64 under the same terms as Perl itself.
65
67 AppConfig, AppConfig::State
68
69
70
71perl v5.38.0 2023-07-20 AppConfig::CGI(3)