Re: Rép: reading a property list item
Re: Rép: reading a property list item
- Subject: Re: Rép: reading a property list item
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 21 May 2008 07:32:18 -0400
On Wed, May 21, 2008 at 5:24 AM, KOENIG Yvan <email@hidden> wrote:
> And may I add that I am glad to read that my question get a response using
> perl even if my named ruby in a recent message ;-)
Perl is a very forgiving mistress, and asks only if you learned
anything new while you strayed. ;-) (There's a bevy of Ruby-inspired
features in the in-development Perl 6...)
Seriously, Ruby's builtin date/time formatting is oddly
locale-insensitive. Python and Tcl are locale-sensitive but more
awkward to use from "do shell script" (e.g. can't write a loop without
a newline in Python, can't supply a hunk of code to run as a
command-line option to tclsh. The difficulties are minor and
work-around-able, but increase the air resistance enough to keep me
from reaching for those tools from AS).
Note that the set of available locales might differ from machine to
machine, so putting the list in the comments is helpful but possibly
inaccurate. You could explicitly check in the code against the
output of locale -a to see if the supplied locale is legal on the
current host, but you don't necessarily need to: Perl will silently
fall back on the default locale in that case and you'll just get
English names.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden