Cleanup Perl code: my $export = $doc; $export =~ s:\.odt:\.pdf:;

Posted by C.W.Holeman II on Stack Overflow See other posts from Stack Overflow or by C.W.Holeman II
Published on 2010-06-02T01:22:30Z Indexed on 2010/06/02 1:43 UTC
Read the original article Hit count: 209

Filed under:
|

Perl code fragment:

my $export = $doc;
$export =~ s:\.odt:\.pdf:;

How would this be written cleaner? Not simply what are 900 other ways to write it, TMTOWTDI.

© Stack Overflow or respective owner

Related posts about perl

Related posts about code-cleanup