http://qs321.pair.com?node_id=201523


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

You could also do it without division.
$_ = '22C'; s/(\d+)C/($1*9*.2)+32 . "F"/ge; print; print "\n"; $_ = '0C'; s/(\d+)C/($1*9*.2)+32 . "F"/ge; print; print "\n";

  • Comment on Re: regexp - how to embed a "/" within the executable part of the regexp when using /e
  • Download Code