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";
|
---|
In Section
Seekers of Perl Wisdom