On Tue, Jun 11, 2002 at 10:03:05PM +0200, Louis Pouzin wrote: > Hi, > > The module Date.pm is in the site_perl folder in the MacPerl folder. > @INC contains the site_perl path. > Date.pm starts with: > > package HTTP::Date; # $Date: 2001/01/04 20:27:15 $ > > $VERSION = sprintf("%d.%02d", q$Revision: 1.43 $ =~ /(\d+)\.(\d+)/); > > require 5.004; > require Exporter; > @ISA = qw(Exporter); > @EXPORT = qw(time2str str2time); > @EXPORT_OK = qw(parse_date time2iso time2isoz); > > It contains a sub parse_date. > > My script contains: > > use strict; > my $str = 'Tue Jun 11 01:07:04 2002'; > use Date qw/parse_date/; > my $out = parse_date($str); > print $out; > > The Exporter croaks: "parse_date" is not exported by the HTTP::Date module.
I don't believe you could get that error message from that code, since you have loaded the Date module rather than the HTTP::Date module. 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 /; Ronald