my ($value) = $url =~ /([^.]*)/;
or split:
my ($value) = split /\./, $url;
For more complex manipulations, you may consider using URI.
In reply to Re: pattern matching question
by kennethk
in thread pattern matching question
by jrhaggie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |