Hi all, 

Just start with perl, not so understood what's the range on using regex.

Can I do something like :

$x = /\.(jpg|jpeg|gif|bmp)$/i;

for (@filelist)
{ push @result, $_ if $_ =~ $x }

since the expression will use time to time, so split it as sub is not effective
enough either.... Any hint ?

Thank you very much,
Jim

Reply via email to