in reply to Re^2: Can anyone tell me what is going on with my code?(Regex match variables)
in thread Can anyone tell me what is going on with my code?(Regex match variables)

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
  • Comment on Re^3: Can anyone tell me what is going on with my code?(Regex match variables)