On Tue, 11 Jun 2002 16:17:46 -0400, Chris Nandor wrote:

>Maybe the module file has Unix linebreaks, or was not run through AutoSplit properly. 
> Did you install it by hand?  If so, how did you do it?

It's a bona fide Mac file, no LF, only CR. I don't remember where I got it. It 
contains Perl code followed by __END__ followed by Pod stuff. At the end there is 
Copyright 1995-1999, Gisle Aas.

There are only 5 subs inside:
time2str, str2time, parse_date, time2iso, time2isoz.

I looked at it, thought it would fit my needs, and put it in site_perl. I didn't run 
Autosplit. Was it needed ?

On Tue, 11 Jun 2002 16:51:05 -0400, Ronald J Kimball wrote:

>If the module is HTTP::Date, it should be in site_perl/HTTP/Date.pm, not 
>site_perl/Date.pm, and you should load it as

>use HTTP::Date qw/ parse_date /;

I did what you said, and I still get the same Exporter diag:
"parse_date" is not exported by the HTTP::Date module.

The script is now:

        use strict;
        my $str = 'Tue Jun 11 01:07:04 2002';
        use HTTP::Date qw/ parse_date /;
        my $out = parse_date($str);
        print $out;

The module Date.pm is 13K, a bit plump for this list, but I could send it off list for 
cross check.

Thanks for the help.

Reply via email to