Remind-Parser
view release on metacpan or search on metacpan
lib/Remind/Parser.pm view on Meta::CPAN
# We've skipped past the header
if (/^# rem2ps end$/) {
# All done
$all_done = 1;
}
else {
unless (defined $loc) {
die "Input does not contain file and line offsets; you must use option -p with remind";
}
my ($date, $special, $tag, $duration, $offset, $description) = split / +/, $_, 6;
my ($year, $month, $day) = split m{[-/]}, $date;
if ($self->strip_times && $description =~ s/^((\d\d?):(\d\d)([ap]m) )//) {
# Strip the time -- but then restore it if it doesn't match
# the offset in minutes
my ($stripped, $H, $M, $pm) = ($1, $2, $3, $4 eq 'pm');
$description = $stripped . $description
unless $offset == _HMpm2min($H, $M, $pm);
}
my $event = $loc2event{$loc} ||= $next_event++;
my $instance = ++$loc2count{$loc};
my %reminder = (
( run in 0.766 second using v1.01-cache-2.11-cpan-5511b514fd6 )