lynx-dev
[Top][All Lists]
Advanced

[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.
;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]