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

Re: [MacPerl] MPW crash with perl tool and MacPerl::DoAppleScript



Some time around 2/9/98 2:23 PM PST, Chris Nandor wrote something about

>Well, not to beat a dead horse, but Perl modules can do this just great.
>And it is more than a few microseconds; on all my machines (including my
>PPC 604e/180), it takes at least 3 seconds or so to compile and execute any
>AppleScript.
>
>The Time-Date modules on CPAN can do this for you, if you want.
>
>  #!perl -wl
>  use Date::Parse;
>  use Date::Format;
>  sub dateFromPerl { # :-)
>    if (my $x = str2time($_[0])) {
>      return time2str('%A, %B %e, %Y', $x);
>    }
>  }

     Aha!! Thanx Chris... my bad for not looking into Date::Parse...  ;)



-- Rain --

** understood words become perfect with their own deception **


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch