Subject: | Syntax error in example |
The example code
Show quoted text
> use iCal::Parser
> my $parser=iCal::Parser->new();
fails with a weird error because of the missing semicolon; see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838475
Trivial patch attached.
Thanks!
Dominic.
Subject: | 0001-Correct-typo-in-example.patch |
From d5df09f3fe878801ea91bffdc277001961c104cc Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <dom@earth.li>
Date: Wed, 21 Sep 2016 11:54:16 +0100
Subject: [PATCH] Correct typo in example
---
lib/iCal/Parser.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/iCal/Parser.pm b/lib/iCal/Parser.pm
index a03e319..b798b67 100644
--- a/lib/iCal/Parser.pm
+++ b/lib/iCal/Parser.pm
@@ -359,7 +359,7 @@ iCal::Parser - Parse iCalendar files into a data structure
=head1 SYNOPSIS
- use iCal::Parser
+ use iCal::Parser;
my $parser=iCal::Parser->new();
my $hash=$parser->parse($file);
--
2.1.4