use strict; use warnings; my $word = quotemeta "color: "; while (<>) { print "Found '$1'\n" while /$word(\w+)/g; # Find all. } __END__
Abigail
In reply to Re: return a word next to the word you give
by Abigail-II
in thread return a word next to the word you give
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |