[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] shell script challenge



On Thu, Jul 24, 2003 at 09:37:24PM +0100, Simon Brown wrote:
> On 2003.07.24 17:46, Dave Mitchell wrote:
> >> >is Perl allowed?
> >> Yeah, if you think it's a better solution
> >
> >Perl is generally best for this sort of thing.
> >
> >below is a rough attmpt with some rudimentary error checking.
> 
> Dave, thanks for the code, my only objection to perl, is that as I've never 
> been forced to use it, I still find it rather impenetrable. It works pretty 
> much as I hoped it would, except the date on the archive seems to be wrong. 
> It seems to be using the current month. So if I run it 1st August the 
> current month will be August but the month to be archived will be June. 
> This also creates a problem with the year at change over. 
> I've had a bash at fixing it, but this is the first perl I've ever written, 
> so do you think my changes were wise?

Looks okay.
Note that I completely mis-spelt January!


-- 
Technology is dominated by two types of people: those who understand what
they do not manage, and those who manage what they do not understand. 
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.