Hello, Consider the code: #===================
use strict;
my $a = 'a.jpg';
if ($a =~ /(html|jpg)/gi) {
print 'ok';
}
#===================
Is the brucket "()" must be needed? Since I am not using back
reference, are there a better way?
Thanks.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
