##
perl -e '$_ = "hi"; print "ok\n" if ( /|x/ );
####
$string = "initial value";
for ( @addons ) {
$string .= " $_"; # or whatever
}
####
my $ext_regex = '\.(' . join('|', qw/css tmp class edf/) . ')$';
for ( @filenames ) {
print "this one matches: $_\n" if ( /$ext_regex/i );
}