[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Lynx and JavaScript -Reply
From: |
Doug Lawson |
Subject: |
Re: LYNX-DEV Lynx and JavaScript -Reply |
Date: |
Sat, 16 Nov 1996 12:32:29 -0500 (EST) |
On Sat, 16 Nov 1996, Doug Lawson wrote:
>
> Hmmm - off thetop of my head, something like:
OOPS - change that previous script to:
> ---------------------------------------------------------------------------
> #!/usr/whatever/perl -i.bak
> # use the -i switch for in place editing of each file listed
> # on the command line
>
> @Months = ("January",
> "February",
> "March",
> "whatever..." );
>
> ($Csec,$Cmin,$Chour,$Cmday,$Cmon,$Cyear,$Cwday,$Cyday,$Cisdst) =
> localtime(time);
>
> $DateString = sprintf("%s %2d %4d",$Months[$Cmon],$Cmday,(1900 + $Cyear));
>
> while(<>)
> { if (/<\!-- *TLJSETDATE *--\>/o)
> { s/TLJSETDATE/$DateString/g;}
>
> }
> -----------------------------------------------------------------------
> I'm not sure what your whole script is trying to do, but this will
> replace all instance of "TLJSETDATE" with the current date in the
> form "November 16 1996".
>
> Later
>
> Doug
>
>
> ;
> ; To UNSUBSCRIBE: Send a mail message to address@hidden
> ; with "unsubscribe lynx-dev" (without the
> ; quotation marks) on a line by itself.
> ;
>
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- Re: LYNX-DEV Lynx and JavaScript -Reply, (continued)
Re: LYNX-DEV Lynx and JavaScript -Reply, Audin Malmin, 1996/11/14
Re: LYNX-DEV Lynx and JavaScript -Reply, Scott McGee (Personal), 1996/11/14
- Re: LYNX-DEV Lynx and JavaScript -Reply, Roger Hill, 1996/11/14
- Re: LYNX-DEV Lynx and JavaScript -Reply, Doug Lawson, 1996/11/14
- Re: LYNX-DEV Lynx and JavaScript -Reply, Filip M Gieszczykiewicz, 1996/11/14
- Re: LYNX-DEV Lynx and JavaScript -Reply, Doug Lawson, 1996/11/15
- Re: LYNX-DEV Lynx and JavaScript -Reply, Filip M Gieszczykiewicz, 1996/11/15
- Re: LYNX-DEV Lynx and JavaScript -Reply, Doug Lawson, 1996/11/16
- Re: LYNX-DEV Lynx and JavaScript -Reply,
Doug Lawson <=
LYNX-DEV Helper apps, Wayne Buttles, 1996/11/16
Re: LYNX-DEV Lynx and JavaScript -Reply, Scott McGee (Personal), 1996/11/14
Re: LYNX-DEV Lynx and JavaScript -Reply -Reply, David Godshall, 1996/11/14
Re: LYNX-DEV Lynx and JavaScript -Reply, Scott McGee (Personal), 1996/11/14
Re: LYNX-DEV Lynx and JavaScript -Reply, WHITLOCK, 1996/11/14