Just remove the curlies in
my ($filename, undef, $ext) = fileparse($originalImage, qr({\..*}));
this will give .ext for extension
So to clarify... I think your issue is with the pattern you are using to match what will populate $ext
In reply to Re: A Wayward Variable
by Pancho
in thread A Wayward Variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |