Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how to fix this? when i type perl /usr/share/perl5/iCal/Parser/HTML.pm i get

syntax error at /usr/share/perl5/iCal/Parser/HTML.pm line 64, near "$t qw(week month year)" Global symbol "$t" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 65. Global symbol "$date" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 65. Global symbol "$t" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 65. Global symbol "%args" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 67. Global symbol "$date" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 67. Global symbol "%args" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 68. Global symbol "$url" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 68. Global symbol "%args" requires explicit package name at /usr/share/perl5/iCal/Parser/HTML.pm line 69. syntax error at /usr/share/perl5/iCal/Parser/HTML.pm line 70, near "}" /usr/share/perl5/iCal/Parser/HTML.pm has too many errors.

share|improve this question
    
meanwhile i fixed it. in the mentioned line 64 the were parentheses missing: foreach my $t qw(week month year) { instead of foreach my $t (qw(week month year)) {. with this modification there is no output at all when typing perl /usr/share/perl5/iCal/Parser/HTML.pm. Also /usr/share/doc/libical-parser-html-perl/examples/ical2html -h puts out the usage. I got an error before. –  lrnz Mar 7 at 6:26

1 Answer 1

there was imho a syntax error in /usr/share/perl5/iCal/Parser/HTML.pm. the following line

foreach my $t qw(week month year) {

has to look like this

foreach my $t (qw(week month year)) {

now everything works fine.

share|improve this answer
    
You are right. Even the "latest" version have this issue (4 years old) - this module seems to not have been tested properly. –  Ouki Mar 7 at 8:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.