Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl: Variable input via HTML

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)
Discussion started by: douknownam
5 Replies

2. Shell Programming and Scripting

Append Header in CSV file

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)
Discussion started by: Sekar1
4 Replies

3. Shell Programming and Scripting

Extract "Name" from this syntax.....

Hello Folks <Server ConnectTimeout="0" ExtendedHandshake="false" MaxConnections="-1" Name="JVM1" ServerIOTimeout="0" WaitForContinue="false"> <Transport Hostname="<HOST_NAME>" Port="9365" Protocol="http"/> <Transport Hostname="<HOST_NAME>" Port="9565" Protocol="https">... (16 Replies)
Discussion started by: ak835
16 Replies

4. Solaris

space between two lines

hi team i have file test which contain hi how are u hi how u doing hellooo gud morning excepted output is hi how are hi how u doing (10 Replies)
Discussion started by: natraj005
10 Replies

5. Shell Programming and Scripting

Formatting input data

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)
Discussion started by: spiriad
9 Replies

6. UNIX for Dummies Questions & Answers

Finding and Extracting uniq data in multiple files

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)
Discussion started by: Fahmida
6 Replies

7. Shell Programming and Scripting

Advanced sed/awk help

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)
Discussion started by: charafantah
13 Replies

8. UNIX for Dummies Questions & Answers

[Solved] Column manipulation

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)
Discussion started by: zajtat
6 Replies

9. Shell Programming and Scripting

convert single line output to multiple line

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)
Discussion started by: kamauv234
6 Replies

10. Shell Programming and Scripting

Help needed for script

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)
Discussion started by: solaris_1977
8 Replies

11. Shell Programming and Scripting

Shell script not working on Solaris 10

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)
Discussion started by: surender reddy
4 Replies

12. Shell Programming and Scripting

Joining 2 Files

File "A" (column names: Nickname Number GB) Nickname Number GB PROD_DB0034 100A 16 ASMIL1B_DATA_003 100B 16 PSPROD_0000 1014 36 PSPROD_0001 100D 223 ..... File "B" (column names: TYPE DEVICE NUMBER SIZE) TYPE DEVICE NUMBER SIZE 1750500 hdisk2 100A 16384 1750500 hdisk3 ... (4 Replies)
Discussion started by: Daniel Gate
4 Replies

13. Shell Programming and Scripting

Replace a field where values are null in a file.

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)
Discussion started by: rudoraj
12 Replies

14. UNIX for Dummies Questions & Answers

Match and insert columns

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)
Discussion started by: zajtat
5 Replies

15. UNIX for Dummies Questions & Answers

Column manipulation

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)
Discussion started by: zajtat
6 Replies