in reply to split...or better?
my $val = (split /\./, 'foo.bar.aaa')[0]; #or my($val) = 'foo.bar.aaa' =~ /^([^.]+)/; [download]
- Ant - Some of my best work - (1 2 3)