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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to