[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Date::Manip and MacPerl Crashes



"Georges Martin" <georges.martin@deboeck.be> writes:
>I'm trying to use the CPAN Date::Manip module written by Sullivan Beck
><mailto:beck@qtp.ufl.edu>.
>
>When I run the following one-line script :
>
>  use Date::Manip;
>
>I get this message :
>
>  # # Date/Manip.pm did not return a true value.

Empirical evidence has shown that this message is almost always caused by
Un*x text files imppported to the Mac in binary mode, so lines are terminated
with LF instead of CR. Drop your files on the following droplet:

#!perl

$/ = "\012";
$^I = ".orig";

while (<>) {
    s/\012/\015/g;
    print;
}

And they should be fixed.

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
  "And that's why I am going to turn this world upside down, and make
   of it a fire so *bright* that someone real will notice"
                                -- Vernor Vinge, _Tatja Grimm's World_