> No, you have to use a regular expression: > > my ( $DOM_NAME, $TLD ) = $domain =~ /(.+)\.(.*)/g;
Looking at the domain fred.org.uk you would get fred.org and uk as your (.+) will do a greedy match. I think you want (.+?). Also, thinking about it, why do you want to do that globally (/g)? The strings you gave before only had on domain in them. Even if they had two you are putting the results into scalar vars and would lose some of the results. -- Arry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]