in reply to regexp - how to embed a "/" within the executable part of the regexp when using /e
Either escape it as s/(\d+)C/($1*9\/5)+32 . "F"/ge; or change the delimiter so there isn't a conflict like s|(\d+)C|($1*9/5)+32 . "F"|ge;. perlre has more examples of this.
|
---|