4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi & good day UNIX / Linux folks,
Some of my > 700 pages don't have this counter:
<!--#exec cgi="/cgi-bin/counter"-->
How would one use find (?!) to know which pages _don't have_ this counter, or - alternatively - which don't have the string:
exec cgi (=bec. probably easier, "exec\... (9 Replies)
Discussion started by: OmarKN
9 Replies
2. Shell Programming and Scripting
Can anyone tell me how to interpret this:
listpage="ls |more" (the spaces are there in the example)
$listpage
It's from my bash book and I'm not sure what it means (3 Replies)
Discussion started by: Straitsfan
3 Replies
3. Solaris
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced rootdisk rootdg online
c1t1d0s2 sliced disk01 rootdg online
c2t0d0s2 sliced actsvr101 actsvr1dg online
c2t2d0s2 sliced actsvr102 actsvr1dg online
c2t3d0s2 ... (13 Replies)
Discussion started by: incredible
13 Replies
4. UNIX for Dummies Questions & Answers
I am someone who has lived on windows till I knew it inside and out but was very ignorant to other operating systems. Last week, after hearing of a much better operating system with more control and structure, I switched to Unix.
I have no idea what I am doing but I am happy to learn. Could... (4 Replies)
Discussion started by: newbie sarah
4 Replies
LEARN ABOUT DEBIAN
cgi::formbuilder::source
CGI::FormBuilder::Source(3pm) User Contributed Perl Documentation CGI::FormBuilder::Source(3pm)
NAME
CGI::FormBuilder::Source - Source adapters for FormBuilder
SYNOPSIS
# Define a source adapter
package CGI::FormBuilder::Source::Whatever;
sub new {
my $self = shift;
my $class = ref($self) || $self;
my %opt = @_;
return bless \%opt, $class;
}
sub parse {
my $self = shift;
my $file = shift || $self->{source};
# open the file and parse it, or whatever
my %formopt;
open(F, "<$file") || die "Can't read $file: $!";
while (<F>) {
# ... do stuff to the line ...
$formopt{$fb_option} = $fb_value;
}
# return hash of $form options
return wantarray ? %formopt : \%formopt;
}
DESCRIPTION
This documentation describes the usage of FormBuilder sources, as well as how to write your own source adapter.
An external source is invoked by using the "source" option to the top-level "new()" method:
my $form = CGI::FormBuilder->new(
source => 'source_file.conf'
);
This example points to a filename that contains a file following the "CGI::FormBuilder::Source::File" layout. Like with the "template"
option, you can also specify "source" as a reference to a hash, allowing you to use other source adapters:
my $form = CGI::FormBuilder->new(
fields => @fields,
source => {
type => 'File',
source => '/path/to/source.conf',
}
);
The "type" option specifies the name of the source adapter. Currently accepted types are:
File - CGI::FormBuilder::Source::File
In addition to one of these types, you can also specify a complete package name, in which case that module will be autoloaded and its
"new()" and "parse()" routines used. For example:
my $form = CGI::FormBuilder->new(
fields => @fields,
source => {
type => 'My::Source::Module',
somefile => '/path/to/source.conf',
}
);
All other options besides "type" are passed to the constructor for that source module verbatim, so it's up to you and/or the source module
on how these additional options should be handled.
SEE ALSO
CGI::FormBuilder, CGI::FormBuilder::Source::File,
REVISION
$Id: Source.pm 100 2007-03-02 18:13:13Z nwiger $
AUTHOR
Copyright (c) Nate Wiger <http://nateware.com>. All Rights Reserved.
This module is free software; you may copy this under the terms of the GNU General Public License, or the Artistic License, copies of which
should have accompanied your Perl kit.
perl v5.14.2 2011-09-16 CGI::FormBuilder::Source(3pm)