in reply to
matching in a line
Your suggestion, and others, destroy the initial value. This might not matter, but if you want to keep your initial value use:
($firstword) = $word =~ /^(.*?):/;
[download]
This leaves $word eq 'Here:\: => M:\p_sold-cr_q00457655_EFLT' and sets $firstword eq 'Here';
Comment on
Re: matching in a line (without destruction)
Download
Code
In Section
Seekers of Perl Wisdom