Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Can anyone tell me what is going on with my code?(Regex match variables)by mr_ron (Chaplain) |
on Sep 30, 2015 at 19:30 UTC ( [id://1143459]=note: print w/replies, xml ) | Need Help?? |
Just a thought. Since you are only switching one character you could use y/// or tr/// instead of s/// and you would not overwrite your match/capture variables. Like: tr/:/-/.
Ron
In Section
Seekers of Perl Wisdom
|
|