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)
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)
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)
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)
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)
: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)
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)
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)
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)
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)
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)
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)
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)