> 
> This is the code.
> #####################################
> $file_completename =~ /(.*?)\.(.*)/;
> if ($2 eq $extension]) {
>   #DO SOMETHING!!!
> }
> #####################################

did u turn on warnings and use strict ??
did you catch the ] at the end of $extension? 

i tried this on my machine and it works fine:
$fn = "test.jpg";
if ($fn =~ /(.*?)\.(.*)/ ) { print "$2" }
# prints jpg


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to