[26254] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 8438 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Sep 21 00:05:38 2005

Date: Tue, 20 Sep 2005 21:05:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 20 Sep 2005     Volume: 10 Number: 8438

Today's topics:
    Re: "Hello World!" not working <sherm@dot-app.org>
    Re: "Hello World!" not working <me@privacy.net>
    Re: chenga script to show one houer more <mothra@nowhereatall.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 20 Sep 2005 18:12:34 -0400
From: Sherm Pendley <sherm@dot-app.org>
Subject: Re: "Hello World!" not working
Message-Id: <m2y85rwfql.fsf@Sherm-Pendleys-Computer.local>

Admin <me@privacy.net> writes:

> Hi Guys, I'm new to Perl, and I'm trying an "Hello World!" script but
> it's  not working. I tried it on 3 different servers and I always get
> "Internal  Server Error". Here's the script:

Have you read (and followed) the advice in the Perl FAQ?

  perl -q 500

There are two very useful links in there.

sherm--

-- 
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


------------------------------

Date: Tue, 20 Sep 2005 19:28:23 -0300
From: Admin <me@privacy.net>
Subject: Re: "Hello World!" not working
Message-Id: <op.sxe91lr2uoj956@charles.mshome.net>

On Tue, 20 Sep 2005 19:12:34 -0300, Sherm Pendley <sherm@dot-app.org>  
wrote:

> Admin <me@privacy.net> writes:
>
>> Hi Guys, I'm new to Perl, and I'm trying an "Hello World!" script but
>> it's  not working. I tried it on 3 different servers and I always get
>> "Internal  Server Error". Here's the script:
>
> Have you read (and followed) the advice in the Perl FAQ?


Thank you. I didn't change anything, but for some reason, the "Hello  
World" script is working now :)

-- 
Thanks,

Admin.
Want to buy me a book? http://tinyurl.com/78xzb :)


------------------------------

Date: Tue, 20 Sep 2005 15:29:37 -0700
From: "Mothra" <mothra@nowhereatall.com>
Subject: Re: chenga script to show one houer more
Message-Id: <433093ee$1@usenet.ugs.com>

Hi Anno,

Anno Siegel wrote:
> Mothra <mothra@nowhereatall.com> wrote in comp.lang.perl.misc:
>> not quite, switching to and from DST is not an easy task. Example:
>>
>>  All countries in Europe, except Iceland , observe daylight-saving
>> time and change on the same date: moving clocks forward one hour on
>> the last Sunday in March and back one hour on the last Sunday in
>> October.
>> In the West European (UTC), Central European (UTC+1), and
>> East European (UTC+2) time zones the change is simultaneous: on both
>> dates the clocks are changed everywhere at 01:00 UTC, i.e. from
>> local times
>> of 01:00/02:00/03:00 to 02:00/03:00/04:00 in March, and vice versa in
>> October.
>>
>> If the script in question was to run at 12:30 UTC and you add one
>> hour to that is would
>> be 1:30UTC which would be an invalid time for that zone (Western
>> European)
>
> I'm not sure I understand your argument. Is that 12:30 Sunday or
> Monday (before or after the switchover) and is it spring or autumn?

I messed that up didn't I. In Western Europe During non DST times
(November through the end of March) UTC is the same as local time.
Now come the last Sunday in March and it is 12:30 AM (1/2 hr
before the time change ie. adding one hour ) If the script in question
was to be run it would add one hour which would put the time at
1:30 AM (local time) on that same Sunday but the switch to DST occures
at 1:00AM. It goes from UTC time to UTC+1 (in our example)
What I was trying to illustrate was that there is no 1:30AM local time

> And how can
> a UTC time be valid or invalid in a certain time zone?  It's either
> valid UTC or it isn't.

because I messed up in the explanation
>
> In any case, it is concerned with *when* to begin (or stop) adding an
> hour. My only point was that the switchover, when it occurs, doesn't
> involve a date change.  That is taken care of in all civilized time
> zones.

That is correct

>
>> This and other issues is what the DateTime project is attempting to
>> solve. If you have a chance, please take a look at the DateTime
>> project http://DateTime.perl.org I think you will find it to be a
>> very complete date/time suite of modules.
>
> Ah, I'm sure it is.  Time and calendar(s) are fascinating subjects,
> and they lend themselves to be cast into Perl modules.  That probably
> explains the proliferation of Date/Time modules on CPAN, not by
> itself a bad thing.

I think it is both good and bad. The good thing about it is there
is so much variety. You are bound to find something you can use.
But the bad thing is that they don't talk to each other.
One of the reasons why DateTime was started was to provide
a consistence interface for date and time functions. Along with
Timezone/DST functions/conversions.

>
> On the other hand, I find that my day-to-day needs are met by Perl's
> localtime and gmtime, POSIX::strftime and the occasional use of
> Time::Local. So, I'm currently just not interested enough in the
> subject to review a large Date/Time project.  I do understand the
> fascination with it, I've been there.

I understand that. DateTime is a hefty perl project. And
for most things it is overkill big time. I for one use it all the time
because I help support it on the DateTime mailing list.All in all
I have to say if you need DST/Timezone support the only
option is the DateTime suite of modules

Mothra 




------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V10 Issue 8438
***************************************


home help back first fref pref prev next nref lref last post