DateTime::Format::Builder::Parser::generic - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation
NAMEDateTime::Format::Builder::Parser::generic − Useful routines
VERSIONversion 0.83
METHODS
Usefulnew Standard constructor. Returns a blessed hash; any arguments are placed in the hash. This is useful for storing information between methods. generic_parser This is a method provided solely for the benefit of Parser implementations. It semi-neatly abstracts a lot of the work involved. Basically, it takes parameters matching the assorted callbacks from the parser declarations and makes a coderef out of it all. Currently recognized callbacks are: • on_match • on_fail • preprocess • postprocess
Methods for subclassingThese are methods you should define when writing your own subclass. Note: these methods do not exist in this class. There is no point trying to call $self−>SUPER::do_match( ... ). do_match do_match is the first phase. Arguments are the date and @args. self, label, args. Return value must be defined if you match successfully. post_match post_match is called after the appropriate callback out of on_match/on_fail is done. It's passed the date, the return value from do_match and the parsing hash. Its return value is used as the post argument to the postprocess callback, and as the second argument to make. make make takes the original input, the return value from post_match and the parsing hash and should return a DateTime object or undefined.
DelegationsFor use of Parser, this module also delegates valid_params and params. This is just convenience to save typing the following: DateTime::Format::Builder::Parser−>valid_params(...)
Instead we get to type: $self−>valid_params(...);
_ _PACKAGE_ _−>valid_params(...);
WRITING A SUBCLASSRather than attempt to explain how it all works, I think it's best if you take a look at Regex.pm and Strptime.pm as examples and work from there.
SEE ALSOdatetime@perl.org mailing list. http://datetime.perl.org/ perl, DateTime, DateTime::Format::Builder, DateTime::Format::Builder::Parser.
SUPPORTBugs may be submitted at <https://github.com/houseabsolute/DateTime−Format−Builder/issues>. I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
SOURCEThe source code repository for DateTime-Format-Builder can be found at <https://github.com/houseabsolute/DateTime−Format−Builder>.
AUTHORS• Dave Rolsky <autarch@urth.org> • Iain Truskett <spoon@cpan.org>
COPYRIGHT AND LICENSEThis software is Copyright (c) 2020 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution. 0
Johanes Gumabo
Data Size : 13,824 byte
man-DateTime::Format::Builder::Parser::generic.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 185,879
Visitor ID : :
Visitor IP : 18.218.50.170 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 10 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|DateTime::Format::Builder::Parser::generic.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|DateTime::Format::Builder::Parser::generic.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|DateTime::Format::Builder::Parser::generic.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|DateTime::Format::Builder::Parser::generic.3pm|43|'br══─}─══ |'br══─}─══
)