in reply to regexp - how to embed a "/" within the executable part of the regexp when using /e

One simply escapes it, this works even if it is part of code to be executed:
$_ = '22C'; s/(\d+)C/($1*9\/5)+32 . "F"/ge; print;
produces 71.6F. Dedalus.
  • Comment on Re: regexp - how to embed a "/" within the executable part of the regexp when using /e
  • Download Code