Home : General : Perl Programming :

General: Perl Programming: Re: [Andy] download counter not accurate on mac: Edit Log

Here is the list of edits for this post
Re: [Andy] download counter not accurate on mac
Hmm that has quite a few lines of unneeded code, for example the following:

Code:
$read_write =~ s/\//_/gi;
$read_write =~ s/ /_/gi;
$read_write =~ s/:/_/gi;

...could be written as:

Code:
$read_write =~ y$ /:$_$/;

You can't have a difference in case in that specific regex either so the "i" is doing nothing.

Last edited by:

Recall: Dec 2, 2003, 9:29 AM

Edit Log: