Re: How to get single scalar to function cleanly

2002-05-21 Thread John W. Krahn
Matt Simonsen wrote: > > I have the following code to parse the line at the bottom of the email. > Basically I want to take the date and convert it into something easy to say > "is this within the last _ days" - the part of this that I think is > particularly sloppy is the whole parsing below the

Re: How to get single scalar to function cleanly

2002-05-21 Thread Ovid
--- Matt Simonsen <[EMAIL PROTECTED]> wrote: > I have the following code to parse the line at the bottom of the email. > Basically I want to take the date and convert it into something easy to say > "is this within the last _ days" - the part of this that I think is > particularly sloppy is the

Re: How to get single scalar to function cleanly

2002-05-21 Thread Matt Simonsen
On Tuesday 21 May 2002 17:01, Eric Beaudoin wrote: > You can pass more than one parameter to ParseDate. > > my $date = ParseDate(@secureFields[0..2]) > Doh! Yes, that's exactly what I want. I was trying @secureFields[1-3] - my obvious (now) mistake was not using the .. Thanks Matt -- To unsubs

Re: How to get single scalar to function cleanly

2002-05-21 Thread Eric Beaudoin
At 19:25 2002.05.21, Matt Simonsen wrote: >I have the following code to parse the line at the bottom of the email. >Basically I want to take the date and convert it into something easy to say >"is this within the last _ days" - the part of this that I think is >particularly sloppy is the whole