On Thu, 2006-06-08 at 00:55 +0200, Flemming Greve Skovengaard wrote: > If you are just going to print the day number and you have other dates in a > similar format why not just use: > > print +(split /\s+/, $date)[2];
Well, in this particular instance, I am. However, there have been at least a few times in the past that I've wanted to achieve the same thing and it always ends up looking like comic book curse words. Also, I prefer to validate the input. This example would match even if the third column weren't digits (more specifically, digits in the range of 1 to 31). Thanks. -- Joshua Colson <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>