Gossamer Forum
Home : General : Perl Programming :

Re: [Andy] download counter not accurate on mac

Quote Reply
Re: [Andy] download counter not accurate on mac In reply to
tr/// or y/// gives better performance than a substitution, also using () captures the match as assigns it to $1 but you don't require it for anything so you should use either:

Code:
$read_write =~ s,(?:/| |:),_,g;

Or better would be to use a character class...

Code:
$read_write =~ s,[ /:],_,g;
Subject Author Views Date
Thread download counter not accurate on mac fluffyduck 8639 Dec 1, 2003, 2:51 PM
Thread Re: [fluffyduck] download counter not accurate on mac
Andy 8400 Dec 2, 2003, 2:36 AM
Thread Re: [Andy] download counter not accurate on mac
Recall 8410 Dec 2, 2003, 9:28 AM
Thread Re: [Recall] download counter not accurate on mac
Andy 8395 Dec 2, 2003, 9:31 AM
Thread Re: [Andy] download counter not accurate on mac
Recall 8406 Dec 2, 2003, 10:28 AM
Thread Re: [Recall] download counter not accurate on mac
Andy 8372 Dec 2, 2003, 10:31 AM
Thread Re: [Andy] download counter not accurate on mac
Recall 8397 Dec 2, 2003, 10:33 AM
Thread Re: [Recall] download counter not accurate on mac
fluffyduck 8321 Dec 3, 2003, 2:46 PM
Post Re: [fluffyduck] download counter not accurate on mac
Recall 8306 Dec 3, 2003, 5:20 PM