Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::formfu::filter::compoundsprintf(3pm) [debian man page]

HTML::FormFu::Filter::CompoundSprintf(3pm)		User Contributed Perl Documentation		HTML::FormFu::Filter::CompoundSprintf(3pm)

NAME
HTML::FormFu::Filter::CompoundSprintf - CompoundSprintf filter SYNOPSIS
--- element: - type: Multi name: date elements: - name: day - name: month - name: year filter: - type: CompoundSprintf sprintf: '%02d-%02d-%04d' # get the compound-value my $date = $form->param_value('date'); DESCRIPTION
For use with a HTML::FormFu::Element::Multi group of fields. Uses a sprintf pattern to join the input from several fields into a single value. METHODS
sprintf Arguments: $string "sprintf" pattern used to join the individually submitted parts. The pattern is passed to the perl-core "sprintf" function. field_order Inherited. See "field_order" in HTML::FormFu::Filter::_Compound for details. --- element: - type: Multi name: date elements: - name: month - name: day - name year filter: - type: CompoundSprintf field_order: - day - month - year 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::Filter::CompoundSprintf(3pm)

Check Out this Related Man Page

HTML::FormFu::Element::Radiogroup(3pm)			User Contributed Perl Documentation		    HTML::FormFu::Element::Radiogroup(3pm)

NAME
HTML::FormFu::Element::Radiogroup - Group of radiobutton form fields SYNOPSIS
YAML config: --- elements: - type: Radiogroup name: sex options: - [ 'm', 'Male' ] - [ 'f', 'Female' ] DESCRIPTION
Convenient to use group of radio button fields. Use the same syntax as you would to create a Select element optgroup to create RadioGroup sub-groups, see "options" in HTML::FormFu::Element::_Group for details. METHODS
options See "options" in HTML::FormFu::Element::_Group. values See "values" in HTML::FormFu::Element::_Group. value_range See "value_range" in HTML::FormFu::Element::_Group. empty_first See "empty_first" in HTML::FormFu::Element::_Group. auto_id In addition to the substitutions documented by "auto_id" in HTML::FormFu, %c will be replaced by an incremented integer, to ensure there are no duplicated ID's. --- elements: type: Radiogroup name: foo auto_id: "%n_%c" reverse_group See "reverse_group" in HTML::FormFu::Element::Checkboxgroup. SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Checkboxgroup, HTML::FormFu::Element::_Group, HTML::FormFu::Element::_Field, HTML::FormFu::Element 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::Element::Radiogroup(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Append date to filename

What is the easiest way to append the date (year, month, day) to a filename? (5 Replies)
Discussion started by: hshapiro
5 Replies

2. UNIX for Dummies Questions & Answers

Multi User Multi Task

Dear Experts Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task?? Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

3. UNIX for Advanced & Expert Users

how to get timestamp of a file in a perl script

I have seen this posting here: perl -e '@d=localtime ((stat(shift))); printf "%02d-%02d-%04d %02d:%02d:%02d\n", $d,$d+1,$d+1900,$d,$d,$d' file1.txt I need to use it inside a perl script. Can anybody please help me out. (5 Replies)
Discussion started by: biswajeet.beher
5 Replies

4. Shell Programming and Scripting

date

file1 E108,0,2/3/1995,0,E001,E003,A,15000,1250,7.211538,12/14/2008 E109,0,2/15/1995,0,E001,E001,A,78000,6500,37.5,2/3/1995 resultant date should be in this formate E108,0,199523,0,E001,E003,A,15000,1250,7.21153820081214 E109,0,1995215,0,E001,E001,A,78000,6500,37.5,199523 Is the any... (10 Replies)
Discussion started by: charandevu
10 Replies

5. Shell Programming and Scripting

Perl in KSH - julian conversion

Hello Everyone, I have this code misbehaving in one of my scripts, I have a var containing the sequential number of the day for the year and I am suppose to get the regular date for that day and its weekday. If I set the day to 273 I get back 2008/09/31 which is not a proper date. can you help... (7 Replies)
Discussion started by: gio001
7 Replies

6. Programming

Data formating using C programm with Hex deciamal 'x0d'

:b:Guys, Can some body throw some light on this please..... sprintf(req_line1, "%c%s%c", '\x0b',"TESTING1",'\x0d'); sprintf(req_line2, "%s%c", "TESTING2", '\x0d'); sprintf(req_line3, "%s%c", "Testing3", '\x0d'); sprintf(req_line4, "%s%c%c%c", "Testing4", '\x0d', '\x1c', '\x0d'); ... (6 Replies)
Discussion started by: sudharma
6 Replies

7. UNIX for Dummies Questions & Answers

Searching the date pattern in a file

Hi, I would like to search the pattern based on the date like "2010/08/15". I tried using / in the file giving /<<pattern>>. when i tried this it turns to /2010/+8, but not going to the pattern what ever i want. This is how the data in the file. INFO | jvm 1 | 2010/05/26 13:30:33... (5 Replies)
Discussion started by: venkatesht
5 Replies

8. UNIX for Dummies Questions & Answers

Formatting date time in unix using perl breaks

while read l do vTimeCreated=`perl -e '@d=localtime ((stat(shift))); printf "%02d-%02d-%04d %02d:% 02d:%02d\n", $d,$d+1,$d+1900,$d,$d,$d' ${l}` echo "${l} || ${vTimeCreated}" >> ${fPrefx}_Output_Files_${vDate}.txt done < servername.txt Using the above code to format date time for each of... (5 Replies)
Discussion started by: HeadBang
5 Replies

9. Shell Programming and Scripting

Multi-Line Search and Replace

There appears to be several threads that touch on what I'm trying to do, but nothing quite generic enough. What I need to do is search through many (poorly coded) HTML files and make changes. The catch is that my search string may be on one line or may be on several lines. For example there... (5 Replies)
Discussion started by: bisbell
5 Replies

10. Shell Programming and Scripting

Filter date and time form a file using sed command

I want to filter out the date and time from this line in a file. How to do this using sed command. on Tue Apr 19 00:48:29 2011 (12 Replies)
Discussion started by: vineet.dhingra
12 Replies

11. Shell Programming and Scripting

Most vexing: Sed or Awk scripting for date conversion needed

Hi, I have some files being sent to me that have dates in them in this format: from 1/8/2011 15:14:20 and I need the dates in this format (mysql date format) To 2011-01-08 15:14:20 all I have so far is the regexp that detects the format: sed -r -e 's@\1/\2/\3\4\5\6]::$@do... (7 Replies)
Discussion started by: Astrocloud
7 Replies

12. UNIX for Dummies Questions & Answers

String replace

I want to replace the last date pattern with the current day date my file looks like >cat sample.dat 1,parameter 2012-06-10 2,parameter 2012-06-10 I want in the below format 1,parameter 2012-06-11 2,parameter 2012-06-11 I tried sed 's/\{4\}-\{2\}-\{2\}$/`date +"%Y-%m-%d"/g`'... (7 Replies)
Discussion started by: midhun19
7 Replies

13. Shell Programming and Scripting

perl : searching for month and storing the date and time in an array

I am writing the code in perl. I have an array in perl and each variable in the array contains the data in the below format Now I need to check the below variable w.r.t system month I need to store the date and time(Tue Aug 7 03:54:12 2012) from the below data into file if contains only 'Aug'... (5 Replies)
Discussion started by: giridhar276
5 Replies

14. AIX

AIX - Get next month from current date

As said in object, how can i obtain that? In linux i use date -d "1 month" +"%m%Y". Thanks i advance. (8 Replies)
Discussion started by: fabfisc
8 Replies

15. Shell Programming and Scripting

To learn last login date

Hello, # last| grep -v "root" | head -1 evam pts/4 10.16.241.217 Fri Nov 20 10:48 gone - no logout I can see last date without year. But I want to learn year of the last login. # last| grep -v "root" | head -1 | awk '{print$4" "$5" "$6" "$7 }' Fri Nov 20 10:48 How can... (5 Replies)
Discussion started by: getrue
5 Replies