> The reason your code breaks is because you are > misunderstanding split(); it does NOT return what > the regex matched. > > split /=/, "a=b" > > does not return ("a", "=", "b"). It returns ("a", "b").
Unless of course you write split as: split /(=)/, "a=b"; But you rarely, if ever, need to do something like that. Jonathan Paton __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]