Re: help regex replacement

2012-04-30 Thread zilore mumba
T add a bit more precision, the lines must appear as they are because the program which reads the file will look for "start_date=followed by the date". I was looking, in perl, for something like "replace line starting in, say /^start_date .. and ending in ...'2012-04-29_00:00:00',$/ I hope this

Re: help regex replacement

2012-04-30 Thread zilore mumba
Thanks very much Bill, and also for the assistance to me over the years. Your suggestion does not do exactly what I want to do. The start_date and end_date are in a file, in the middle of other text. The idea is to replace daily the year,month and day to the current year,month and dayand on end_

Re: help regex replacement

2012-04-30 Thread $Bill Luebkert
On 04/30/2012 14:28, zilore mumba wrote: > sample input > start_date = > '2012-04-29_00:00:00','2012-04-29_00:00:00','2012-04-29_00:00:00', > end_date = '2012-05-01_00:00:00','2012-05-01_00:00:00','2012-05-01_00:00:00', > > The model would have run on 29th May, to produce a 48hour forecast to 1sr

Re: help regex replacement

2012-04-30 Thread Michael Ludwig
zilore mumba schrieb am 30.04.2012 um 14:28 (-0700): > sample input > > start_date = > '2012-04-29_00:00:00','2012-04-29_00:00:00','2012-04-29_00:00:00', >  end_date   = > '2012-05-01_00:00:00','2012-05-01_00:00:00','2012-05-01_00:00:00', > > The model would have run on 29th May,  to produce a

Re: help regex replacement

2012-04-30 Thread zilore mumba
From: zilore mumba To: "Thurn, Martin (TASC)" Sent: Monday, April 30, 2012 10:29 PM Subject: Re: help regex replacement My mail should have readsample input start_date = '2012-04-29_00:00:00', '2012-04-29_00:00:00', '2012-04-29_00:00:00',  end_date   = '2012-05-01_00:00:00', '201

Re: help regex replacement

2012-04-30 Thread zilore mumba
sample input start_date = '2012-04-29_00:00:00','2012-04-29_00:00:00','2012-04-29_00:00:00',  end_date   = '2012-05-01_00:00:00','2012-05-01_00:00:00','2012-05-01_00:00:00', The model would have run on 29th May,  to produce a 48hour forecast to 1sr May 2012. When I run it on 30th May it should

Re: Getting 403 forbidden when installing or updating via ppm...

2012-04-30 Thread Leo Susanto
Or, you can use the Perl 5.6 ppm repository maintained by University of Winnipeg. Site: http://theoryx5.uwinnipeg.ca/ppmpackages/ Just "ppm repo add http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer"; Remember that this repository is old, you might want to contact the maintainer to a

Re: help regex replacement

2012-04-30 Thread Michael Ludwig
zilore mumba schrieb am 30.04.2012 um 10:14 (-0700): > I have to automate a modle namelist by replacing the start and end > date of the model run as per lines below. Please provide two data items: * sample input * expected output Michael ___ ActivePerl

Re: Getting 403 forbidden when installing or updating via ppm...

2012-04-30 Thread Michael Ludwig
brett.carr...@bpd.treas.gov schrieb am 30.04.2012 um 11:55 (-0400): > I am setting up a new machine and am trying to update the modules via > ppm, but am getting a "forbidden" error when using ppm. > C:\>ppm install Win32::PerfMon > Downloading Win32-PerfMon.0.07-Perl5.6...forbidden > ppm install

help regex replacement

2012-04-30 Thread zilore mumba
Hello Kind folks, I have to automate a modle namelist by replacing the start and end date of the model run as per lines below. start_date = '2012-04-26_00:00:00','2012- 04-26_00:00:00', end_date   = '2012-04-26_09:00:00','2012-04-26_09:00:00', I have been checking the documentation on how to te r

Getting 403 forbidden when installing or updating via ppm...

2012-04-30 Thread Brett . Carroll
I am setting up a new machine and am trying to update the modules via ppm, but am getting a "forbidden" error when using ppm. I am able to download the modules using Internet Explorer though... C:\>ppm update Tk Tk 804.029 (have 804.028) Downloading Tk-804.029...forbidden C:\>ppm install Win32