ICal::Format::Natural - Create an Data::ICal object with natural parsing logic.
version 1.121310
# only exported on demand use ICal::Format::Natural qw(ical_format_natural); my $ical = ical_format_natural('Tomorrow at noon. Lunch with Bob'); # creates an Data::ICal object with: # dtstart tomorrow 12:00 # dtend tomorrow 13:00 # summary Lunch with Bob
ICal::Format::Natural will (one day) take a human readable string and create an Data::ICal object.
ICal::Format::Natural
NOTE: Currently this is pretty dumb and simply splits the sting on a fullstop, taking the first part as the date and the second part as the summary.
I would love to improve this one day, but as always it's about finding the time. Any contributions and/or ideas are most welcome.
Parses the string and returns an Data::ICal object.
Thanks to Mark Stosberg who wrote ICal::QuickAdd. It contained a simple version of the parser and was the basis for this module.
Andrew Jones <andrew@arjones.co.uk>
This software is copyright (c) 2012 by Andrew Jones.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install ICal::Format::Natural, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ICal::Format::Natural
CPAN shell
perl -MCPAN -e shell install ICal::Format::Natural
For more information on module installation, please visit the detailed CPAN module installation guide.