C
cartercc
Installed Steffen Beyer's Date:calc from CPAN.
Wrote a little test program to see if it works and ran WITH WARNINGS:
1 #!/usr/bin/perl
2 use strict;
3 use Date:calc;
4
5 my ($doy,$year,$month,$date,$day);
6
7 print "Enter year:\n";
8 $year = <STDIN>;
9 chomp $year;
10 print "The year is $year.\n";
11
12 exit();
Test program worked but I got much more than I bargained for. I know
what's going on but have no idea how to fix it. Ideas?
Here's a SAMPLE of the output-----------------------------
Malformed UTF-8 character (unexpected non-continuation byte 0x6f,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 158.
Malformed UTF-8 character (unexpected non-continuation byte 0x72,
immediately after start byte 0xe9) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 191.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 192.
Malformed UTF-8 character (unexpected non-continuation byte 0x61,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 195.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 196.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 204.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 204.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 229.
Malformed UTF-8 character (unexpected non-continuation byte 0x61,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 254.
Malformed UTF-8 character (unexpected non-continuation byte 0x6f,
immediately after start byte 0xf1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 254.
Malformed UTF-8 character (unexpected non-continuation byte 0x73,
immediately after start byte 0xea) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 255.
Enter year:
2006
The year is 2006.
[cal@serdev cal]$
Wrote a little test program to see if it works and ran WITH WARNINGS:
1 #!/usr/bin/perl
2 use strict;
3 use Date:calc;
4
5 my ($doy,$year,$month,$date,$day);
6
7 print "Enter year:\n";
8 $year = <STDIN>;
9 chomp $year;
10 print "The year is $year.\n";
11
12 exit();
Test program worked but I got much more than I bargained for. I know
what's going on but have no idea how to fix it. Ideas?
Here's a SAMPLE of the output-----------------------------
Malformed UTF-8 character (unexpected non-continuation byte 0x6f,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 158.
Malformed UTF-8 character (unexpected non-continuation byte 0x72,
immediately after start byte 0xe9) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 191.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 192.
Malformed UTF-8 character (unexpected non-continuation byte 0x61,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 195.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 196.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 203.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 204.
Malformed UTF-8 character (1 byte, need 3, after start byte 0xec) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 204.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected continuation byte 0xaa, with no
preceding start byte) at /usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm
line 229.
Malformed UTF-8 character (unexpected non-continuation byte 0x62,
immediately after start byte 0xe1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 229.
Malformed UTF-8 character (unexpected non-continuation byte 0x61,
immediately after start byte 0xe7) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 254.
Malformed UTF-8 character (unexpected non-continuation byte 0x6f,
immediately after start byte 0xf1) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 254.
Malformed UTF-8 character (unexpected non-continuation byte 0x73,
immediately after start byte 0xea) at
/usr/lib/perl5/site_perl/5.8.0/Date/Pcalc.pm line 255.
Enter year:
2006
The year is 2006.
[cal@serdev cal]$