Lines Matching defs:can

8 # You can run this file through either pod2man or pod2html to produce pretty
97 # it can just be renamed, instead of read and written.
210 # Define the CRLF sequence. I can't use a simple "\r\n" because the meaning
262 # Custom 'can' method for both autoloaded and non-autoloaded subroutines.
265 sub can {
268 # See if UNIVERSAL::can finds it.
270 if (my $func = $class -> SUPER::can($method) ){
284 # just use UNIVERSAL::can again to do the work.
286 return $class -> SUPER::can($method);
380 # We provide a DESTROY method so that we can ensure that
460 eval "require Encode; 1;" unless Encode->can('decode'); # bring in these functions
1098 # can anyone find an easier way to do this?
1403 # Write values out to a filehandle in such a way that they can
2101 # $maxlength -> Optional maximum characters that can be entered.
2819 # param/value pairs arranged as a query. You can use this
2900 # Cookie can then be passed to header().
3021 # number of consecutive slashes as no guarantee can be made there.
3040 # numer of consecutive slashes, so we can extract the info from
3565 # caller can read from it if necessary.
3669 ## open file handles. The user can access the files using the hash
3674 # Save some information about the uploaded file where we can get
3771 ## open file handles. The user can access the files using the hash
3776 # Save some information about the uploaded file where we can get
3934 eval "require IO::Handle" unless IO::Handle->can('new_from_fd');
4235 # : can generate a 'getpwuid() not implemented' exception, even though
4375 server. You can modify the objects, save them to a file or database
4428 case of these routines you can provide the single argument without an
4437 array, and sometimes a reference to a hash. Often, you can pass any
4470 optional in all but the HTML shortcuts. If you like, you can use
4500 doesn't recognize. For example, you can produce non-standard HTTP
4538 parameters from the file (or STDIN, or whatever). The file can be in
4542 can be saved and restored.
4550 You can also initialize the CGI object with a FileHandle or IO::File
4562 You can also initialize the query object from a hash
4594 parsed keywords can be obtained as an array using the keywords() method.
4623 selections in a scrolling list), you can ask to receive an array. Otherwise
4711 Likewise if PUTed data can be retrieved with code like this:
4726 by the methods given in the previous sections, you can obtain a direct
4730 can manipulate in any way you like.
4732 You can also use a named argument style using the B<-name> argument.
4769 filehandle. You can read it back in by providing a filehandle
4770 to the new() method. Note that the filehandle can be a file, a pipe,
4783 single = symbol. You can write out multiple records and read them
4784 back in with several calls to B<new>. You can do this across several
4808 Whitehead Genome Center's data exchange format "Boulderio", and can be
4820 Errors can occur while processing user input, particularly when
4822 processing and return an empty parameter list. You can test for
4824 The error messages are formatted as HTTP status codes. You can either
4850 The listed methods will be imported into the current package; you can
4863 Here is a list of the function sets you can import:
4911 subroutine. You can then use it like any other HTML tag. This is to
4930 object, you can find it in the global variable B<$CGI::Q>). By
4931 importing CGI.pm methods, you can create visually elegant scripts:
4962 you can import. Pragmas, which are always preceded by a hyphen,
4964 function sets, and individual functions can all be imported in the
5026 this behavior. You can also selectively change the sticky behavior in
5032 option turned off, you can still add tab indexes manually by passing a
5116 CGI.pm can process uploaded file. Ordinarily it spools the uploaded
5160 tags yourself. In this case, you can use the form start_I<tag_name>
5167 I<use CGI>. However, you can specify the tags you want to generate
5200 can print out directly so that it displays in the browser window,
5208 date, and whether to cache the document. The header can also be
5233 header() returns the Content-type: header. You can provide your own
5236 message. For example, you can specify 204, "No response" to create a
5249 the browser reloads the page, the script is invoked anew. You can
5275 The B<-charset> parameter can be used to control the character set
5279 The B<-attachment> parameter can be used to turn the page into an
5286 parameter can be an arrayref or a space-delimited string of P3P tags.
5320 You can also use named arguments:
5407 lang attribute is left off. You can force the lang attribute to left
5410 The B<-encoding> argument can be used to specify the character set for
5413 The B<-dtd> argument can be used to specify a public DTD identifier string. For example:
5417 Alternatively, it can take public and system DTD identifiers as an array:
5432 You can place other arbitrary HTML elements to the <head> section with the
5592 You can also retrieve the unprocessed query string with query_string():
5612 You can modify this format with the following named arguments:
5636 Append the additional path information to the URL. This can be
5642 Append the query string to the URL. This can be combined with
5704 If you find the syntax for calling the HTML shortcuts awkward, you can
5745 lists can be marked as COMPACT. The syntax for this is an argument that
5808 of images. In this case, you can simply change the value of $" to an
5873 can use "use utf8". See L<perlunitut>, L<perlunifaq> and L<perlunicode> for more
5907 It's set up this way so that you can place formatting tags
5930 escaped according to HTML rules. This means that you can safely use
6031 newer form of encoding by default, you can call
6037 form a name so that it can be identified and manipulated by
6040 server. You can use this opportunity to check the contents of the form
6042 can put up an alert box or maybe fix things up yourself. You can
6061 The name of the field. After submission this name can be used to
6079 A string identifier that can be used to identify this element to
6138 When the form is processed, the value of the text field can be
6144 called once, you can do so like this:
6160 rows and columns for a multiline text entry box. You can provide
6161 a starting value for the field, which can be long and contain
6189 multipart encoding scheme> for the form. You can do this either
6233 When the form is processed, you can retrieve an L<IO::Handle> compatible
6253 If you want the entered file name for the file, you can just call param():
6286 can access the temporary file directly. You can access the temp file for a file
6304 you can incorporate it into a status code to be sent to the browser.
6319 a file upload hook. You can use this feature to completely turn off
6361 ( This section is here for completeness. if you are building a new application with CGI.pm, you can skip it. )
6415 containing the list of menu items in the menu. You can pass the
6433 default. (You can also leave a label undefined if you want to).
6445 When the form is processed, the selected value of the popup menu can
6483 containing the list of menu items in the menu. You can pass the
6493 of the menu items. You can use this when you want the user to see one
6501 An optional fourth parameter (B<-labeled>) can be set to a true value
6507 An optional fifth parameter (-novals) can be set to a true value and
6561 The optional third argument (-default) can be either a reference to a
6562 list containing the values to be selected by default, or can be a
6565 parameter version, you can use the synonym "-defaults" for this
6574 The optional fifth argument can be set to true to allow multiple
6594 selected items can be retrieved with:
6639 The optional third argument (-default) can be either a reference to a
6640 list containing the values to be checked by default, or can be a
6646 The optional fourth argument (-linebreak) can be set to true to place
6662 columns. You can provide just the -columns parameter if you wish;
6674 The optional B<-tabindex> argument can be used to control the order in which
6680 will correspond to the tab order. You can also pass a reference to a
6693 "on" checkboxes can be retrieved with:
6698 elements. You can capture them and use them within tables, lists,
6747 The value of the checkbox can be retrieved using:
6795 default. You can provide a nonexistent button name, such as "-" to
6800 The optional fourth parameter (-linebreak) can be set to 'true' to put
6813 All modern browsers can take advantage of the optional parameters
6816 with the specified number of rows and columns. You can provide just
6821 can use the B<-rowheaders> and B<-colheaders> parameters. Both
6827 The optional B<-tabindex> argument can be used to control the order in which
6833 will correspond to the tab order. You can also pass a reference to a
6851 When the form is processed, the selected radio button can
6857 elements. You can capture them and use them within tables, lists,
6881 The first argument (-name) is optional. You can give the button a
6893 You can use -label as an alias for -value. I always get confused
6899 You can figure out which button was pressed by using different
6932 hidden() produces a text field that can't be seen by the user. It
6948 (-default). In the named parameter style of calling, you can provide
7087 The name of the cookie (required). This can be any string at all.
7094 The value of the cookie. This can be any scalar value,
7096 you can store an entire hash into a cookie this way:
7150 values can also be retrieved.
7197 document into that. There are a number of magic names that you can
7202 You can specify the frame to load in the FORM tag itself. With
7228 The elements that can register event handlers include the <BODY> of an
7251 just before the form is submitted, and your function can return a
7344 Similarly, you can create a form that checks itself over for
7362 stylesheet can be found. B<-code> points to a scalar value to be
7473 debugger, you can pass the script a list of keywords or
7476 environment variables). You can pass keywords like this:
7498 When debugging, you can use quotes and backslashes to escape
7505 Finally, you can set the path info for the script by prefixing the first
7533 As a shortcut, you can interpolate the entire CGI object into a string
7541 Some of the more useful environment variables can be fetched
7565 structure. You can separate it into individual cookies by splitting
7567 retrieves the B<unescaped> form of the cookie. You can use the
7838 of memory, CPU time and disk space that CGI scripts can use. Some Web
7840 cases, you can use the shell I<limit> or I<ulimit>
7845 service attacks, but you must activate them before you can use them.
7867 You can use these variables in either of two ways.
7890 I<param()> to return an empty CGI parameter list. You can test for
7928 which can be accessed to obtain the query variables. Like
7929 ReadParse, you can also provide your own variable. Infrequently
7933 Once you use ReadParse, you can retrieve the query object itself
8077 print "<p><em>Where can you find English Sparrows?</em><br>";
8084 print "<p><em>How far can they fly?</em><br>",