s{...}{ c2f($1).'/'.c2f($2) }ge; sub c2f { my $celsius = shift; return (9 *{$celsius}/5) + 32; }
In reply to Re: substitution with regex
by Anonymous Monk
in thread substitution with regex
by drose2211
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |