html::formfu::constraint::callbackonce(3pm) [debian man page]
HTML::FormFu::Constraint::CallbackOnce(3pm) User Contributed Perl Documentation HTML::FormFu::Constraint::CallbackOnce(3pm)NAME
HTML::FormFu::Constraint::CallbackOnce - Code Callback Constraint
SYNOPSIS
$form->constraint({
type => 'CallbackOnce',
name => 'foo',
callback => &sfoo,
);
sub foo {
my ( $value, $params ) = @_;
# return true or false
}
DESCRIPTION
Unlinke the HTML::FormFu::Constraint::Callback, this callback is only called once, regardless of how many values are submitted.
The first argument passed to the callback is the submitted value for the associated field; this may be a single value or an arrayref of
value. The second argument passed to the callback is a hashref of name/value pairs for all input fields.
This constraint doesn't honour the "not()" value.
METHODS
callback
Arguments: &sub_ref
SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
HTML::FormFu
AUTHOR
Carl Franks "cfranks@cpan.org"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 HTML::FormFu::Constraint::CallbackOnce(3pm)
Check Out this Related Man Page
HTML::FormFu::Constraint::MinMaxFields(3pm) User Contributed Perl Documentation HTML::FormFu::Constraint::MinMaxFields(3pm)NAME
HTML::FormFu::Constraint::MinMaxFields - Min/Max Multi-field Constraint
SYNOPSIS
type: MinMaxFields
name: foo
others: [bar, baz]
min: 1
max: 1
DESCRIPTION
Ensure that at least a minimum and only a maximum number of fields are present.
This constraint doesn't honour the "not()" value.
METHODS
minimum
min
The minimum number of named fields which must be filled in.
"min" is an alias for "minimum".
maximum
max
The maximum number of named fields which must be filled in.
"max" is an alias for "maximum".
The default for max is the number of all affected fields, in other words one more than the number of elements given to others.
attach_errors_to_base
Default Value: 1
attach_errors_to_others
Default Value: 0
SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Constraint::_others, HTML::FormFu::Constraint
HTML::FormFu
AUTHOR
Mario Minati "mario.minati@googlemail.com"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-23 HTML::FormFu::Constraint::MinMaxFields(3pm)
I am completely new to perl and am just going over the tutorials right now. What I am trying to attempt is to take the input from the HTML (in a form) and use those variables in a perl script. I've looked everywhere for a simple example on how to do this and cannot find it or do not understand... (5 Replies)
Hi,
I create a csv file and the output looks like below
Arun,E001
Sathish,E003
Now i need to include the below header and the output should like below
Name,Number
Arun,E001
Sathish,E003
Please guide me.
Thanks (4 Replies)
Hello everybody,
I have a file containing some statistics regarding CPU usage. The file has this syntax :
Fri Jul 16 14:27:16 EEST 2010
Cpu(s): 15.2%us, 1.4%sy, 0.0%ni, 82.3%id, 0.1%wa, 0.0%hi, 0.9%si, 0.0%st
Fri Jul 16 15:02:17 EEST 2010
Cpu(s): 15.3%us, 1.4%sy, 0.0%ni, 82.3%id, ... (9 Replies)
Hi,
I have several files that look like this:
File1.txt
Data1
Data2
Data20
File2.txt
Data1
Data5
Data10
File3.txt
Data1
Data2
Data17
File4.txt (6 Replies)
I have thousands of files in HTML that looks like this:
....
....
....
<!-- table horaire --> <!-- table horaire -->
<table border="0" cellspacing="0" cellpadding="0" class="tblHoraires" summary="Table des horaires de la ligne 12">
<tr>
<th scope="row"... (13 Replies)
Hi Everyone,
I was wondering if someone could help me to transform my data into a format I need.
Here is an example of what my data looks like
E F G H
A 1 2 3 4
B 5 6 7 8
C 9 1 2 3
D 4 5 6 7
and this is what I would need it to look like:
AE 1
BE 5
CE 9
DE 4
AF 2
BF 6
CF 1 (6 Replies)
Hi all,
I have a single line output like below
echo $ips
10.26.208.28 10.26.208.26 10.26.208.27
want to convert above single line output as below format. Pls advice how to do ?
10.26.208.28
10.26.208.26
10.26.208.27
Regards
Kannan (6 Replies)
Hi,
I have a big list like this --> 3285
3289
328D
3291
3295
3299
329D
32A1
I need to make it like -->
3285|3289|328D|3291|3295|3299|329D|32A1
Please suggest. This is Linux OS. (8 Replies)
Hi
Iam running the below scripts on one file on solaris 10 but its giving error.
code
sh BNGREPORT1.sh z1 code in file BNGREPORT1.sh is given below.
root@blr-svr-oclan-01 # more BNGREPORT1.sh
#!/bin/sh
#cd /surender
FILE="bng_total_report_$(date +%Y%m%d_%H%M%S)"
echo HOST_NAME "|"... (4 Replies)
Hi,
I've a pipe delimited file and wanted to replace the 3rd field to 099990 where the values are null. How can I achieve it using awk or sed.
20130516|00000061|02210|111554|03710|2|205069|SM APPL $80-100 RTL|S
20130516|00000061|02210|111554|03710|2|205069|SM APPL $80-100 RTL|S... (12 Replies)
Hi,
I've got two files to match. File one:
a1 b c d e
a2 b c d e
a3 b c d e
a4 b c d e
and file 2
a1 1 2 3 4
a2 5 6 7 8
a3 9 10 11 12
a4 1 2 3 4
I need to match them by the first column and add the four columns of file 2 to the file 1 so that those added columns go as columns... (5 Replies)
Hi,
I's like to ask for help with the following question:
this is an example file:
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10
I need to have it re-arranged in the following manner: first 2 columns, zero, zero, last two columns, columns 3 to... (6 Replies)