Well Uxix is actually a misspelling it'd be "Unix" - but I assume that's a typo, as Date::Manip no longer needs to have UnixDate exported. The rewrite of Date::Manip from 5 to 6 moved it to Date::Manip::DM6 so in perldoc Date::Manip::DM6 UnixDate $out = UnixDate($date,$in); @out = UnixDate($date,@in);
This takes a date and a list of strings containing formats roughly identical to the format strings used by the UNIX date(1) command. Each format is parsed and an array of strings corresponding to each format is returned. The formats are described in the Date::Manip::Date document. So you can just drop the qw-ed name list. On Fri, Nov 6, 2015 at 11:20 AM, Karl Hakmiller <ka...@cox.net> wrote: > ~/perlstuff$ perl hopdelta.plx > "UxixDate" is not exported by the Date::Manip module > Can't continue after import errors at hopdelta.plx line 9. > BEGIN failed--compilation aborted at hopdelta.plx line 9. > karlh@HAKS13:~/perlstuff$ > > I received this error trying to run a script taken from the Perl Cookbook > (2nd Ed;Christensen & Torkington; p.107). > which begins as follows: > > use Date::Manip qw (ParseDate UxixDate); > > # print header; > printf "%-20.20s %-20.20s %-20.20s %s\n", > "Sender", "Recipient", "Time", "Delta"; > > $/ = ''; # Paragraph mode > $_ = <>; # Read header > s/\n\s+/ /g; # Join continuation lines > > > I've read the docs on the Date::Manip module and > several of its sub-modules but can find no > clarification there (which is probably because > I am a rank beginner with perl). So, assuming > there is no typo or bug in the script will someone > please point me toward a source that explains what > is (or isn't) happening here. > > BTW, I'm using perl5 version 20 subversion 2 on Ubuntu 15.10 > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- a Andy Bach, afb...@gmail.com 608 658-1890 cell 608 261-5738 wk