|
Posted by Mason G. Zhwiti on February 20, 2007, 3:23 pm
Please log in for more thread options
wrote:
> So rather than:
>
> my $gdimport = 'newFrom' . ucfirst($self->export_format);
>
> I do:
>
> my $gdimport = 'newFrom' . ($self-> =~ /\.(\w+)$/) ?
> ucfirst($1) : ucfirst($self->export_format);
Apologies, I copied from memory ... and left out the additional
parenthesis in my code:
my $gdimport = 'newFrom' . (($self-> =~ /\.(\w+)$/) ?
ucfirst($1) : ucfirst($self->export_format));
|