On Wed, 16 Jul 2003, Gerber, Christopher J wrote:

> -----Original Message-----
> > From: Carl Jolley [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 16, 2003 2:59 PM
> > To: Tobias Hoellrich
> >
> > On Wed, 16 Jul 2003, Tobias Hoellrich wrote:
> >
> > > [I sent this yesterday afternoon, but it never appeared on the list -
> wonder
> > > why?]
> > >
> > > perl -MPOSIX -e '$o=6-(localtime())[6]; print strftime("%m/%d/%Y
> > > %A\n",localtime(time+($o+$_)*24*60*60)) for(0..13);
> > >
> >
> > Which of the Win32 OSes did you try this on?
>
> Carl,
>
> I was able to run the above using Cygwin, but then got this to work on
> cmd.exe by making a few subtle changes (primarily the quoting...):
>
> perl -MPOSIX -e "$o=6-(localtime())[6];print strftime(
> qq(%m/%d/%Y %A\n),localtime(time+($o+$_)*24*60*60))
> for(0..13);"
>

The quoting was exactly my point. I don't know of any Win32 OS that
suports use of single quotes to delimit command line parameters.
OTOH, I don't claim to have perfect knowledge regarding all Win32
OSes or the varioius command line shells they support.

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****


> Chris
>
>
> LEGAL NOTICE
> Unless expressly stated otherwise, this message is confidential and may be 
> privileged. It is intended for the addressee(s) only. Access to this E-mail by 
> anyone else is unauthorized. If you are not an addressee, any disclosure or copying 
> of the contents of this E-mail or any action taken (or not taken) in reliance on it 
> is unauthorized and may be unlawful. If you are not an addressee, please inform the 
> sender immediately.
>

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to