DateTime::Format::Builder::Parser::Quick man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

DateTime::Format::BuilUser:ContribuDateTime::Format::Builder::Parser::Quick(3)

NAME
       DateTime::Format::Builder::Parser::Quick - Use another formatter,
       simply

SYNOPSIS
	   use DateTime::Format::Builder (
	   parsers => { parse_datetime => [
	       { Quick => 'DateTime::Format::HTTP' },
	       { Quick => 'DateTime::Format::Mail' },
	       { Quick => 'DateTime::Format::IBeat' },
	   ]});

       is the same as:

	   use DateTime::Format::HTTP;
	   use DateTime::Format::Mail;
	   use DateTime::Format::IBeat;

	   use DateTime::Format::Builder (
	   parsers => { parse_datetime => [
	       sub { eval { DateTime::Format::HTTP->parse_datetime( $_[1] ) } },
	       sub { eval { DateTime::Format::Mail->parse_datetime( $_[1] ) } },
	       sub { eval { DateTime::Format::IBeat->parse_datetime( $_[1] ) } },
	   ]});

       (These two pieces of code can both be found in the test suite; one as
       quick.t, the other as fall.t.)

DESCRIPTION
       "Quick" adds a parser that allows some shortcuts when writing fairly
       standard and mundane calls to other formatting modules.

SPECIFICATION
       "Quick" has two keys, one optional.

       The "Quick" keyword should have an argument of either an object or a
       class name. If it's a class name then the class is "use"d.

       The "method" keyword is optional with a default of "parse_datetime".
       It's either name of the method to invoke on the object, or a reference
       to a piece of code.

       In any case, the resultant code ends up looking like:

	    my $rv = $Quick->$method( $date );

THANKS
       See the main module's section.

SUPPORT
       Support for this module is provided via the datetime@perl.org email
       list. See http://lists.perl.org/ for more details.

       Alternatively, log them via the CPAN RT system via the web or email:

	   http://perl.dellah.org/rt/dtbuilder
	   bug-datetime-format-builder@rt.cpan.org

       This makes it much easier for me to track things and thus means your
       problem is less likely to be neglected.

LICENCE AND COPYRIGHT
       Copyright (C) Iain Truskett, 2003. All rights reserved.

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself, either Perl version 5.000 or, at
       your option, any later version of Perl 5 you may have available.

       The full text of the licences can be found in the Artistic and COPYING
       files included with this module, or in perlartistic and perlgpl as
       supplied with Perl 5.8.1 and later.

AUTHOR
       Iain Truskett <spoon@cpan.org>

SEE ALSO
       "datetime@perl.org" mailing list.

       http://datetime.perl.org/

       perl, DateTime, DateTime::Format::Builder

perl v5.14.1			  2DateTime::Format::Builder::Parser::Quick(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net