develooper Front page | perl.beginners | Postings from January 2002

Greedy 'split' ???

Thread Next
Scott Lutz
January 16, 2002 15:57
Greedy 'split' ???
Message ID:

$DOM_NAME, my $TLD) = split(/\./, $domain);
creates two variable out of an inputted domain name, 

until this comes along:

which it interprets as : 
	$DOM_NAME = domainname
	$TLD = org

so is it possible to do a 'greedy split' ??

Scott Lutz
Pacific Online Support
Phone: 604.638.6010
Fax: 604.638.6020
Toll Free: 1.877.503.9870

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About