>>>>> "Daniel" == Daniel Kasak <[EMAIL PROTECTED]> writes:
Daniel> I'm trying to split a date where the values can be separated by a dash '-' or Daniel> a slash '/', eg: Daniel> 2006-10-31 or 2006/10/31 If it's easier to talk about what to keep instead of what to throw away, don't use split -- use regex match: my ($y, $m, $d) = $string =~ /(\d+)/g; -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>