How about this?
my $message_id = do { local $_ = $message; (split)[0]; };
After Compline,
Zaxo
In reply to Re: Applying a regular expression to a string
by Zaxo
in thread Applying a regular expression to a string
by mw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |