http://www.perlmonks.org?node_id=1037823

welle has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks

I have this simple Index line

my $result = index($line, " ");

what if I want the same $result not only if a space is found but also if other characters are found (as alternatives), let's say: [\(\)\,\.\;\:\-\?\!\'\] Is this possible?