Scott Lutz wrote: > > $DOM_NAME, my $TLD) = split(/\./, $domain); > creates two variable out of an inputted domain name, > > until this comes along: > domainname.org.uk > > which it interprets as : > $DOM_NAME = domainname > $TLD = org > > so is it possible to do a 'greedy split' ??
No, you have to use a regular expression: my ( $DOM_NAME, $TLD ) = $domain =~ /(.+)\.(.*)/g; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]