On Mon, 2006-10-30 at 02:34 +0100, xavier mas wrote: > A Dimarts 31 Octubre 2006 02:22, Daniel Kasak va escriure: > > my ( $yyyy, $mm, $dd ) = split /(-|\/)/, $yyyymmdd; > > split function can't accept an expression on its syntax, only a character as > separator field. > -- > Xavier Mas
To Xavier Mas: I think you're getting confused with join(), You can indeed give split() a regular expression as its first argument. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>