At 22:03 +0200 2002.06.11, Louis Pouzin wrote: >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/;
Do you mean HTTP::Date? >my $out = parse_date($str); >print $out; > >The Exporter croaks: "parse_date" is not exported by the HTTP::Date module. > >I've tried a number of variants to no avail. What am I missing ? Thanks. 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? MacPerl 5.6.1 comes with a working HTTP::Date. -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/