Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by trs80 (Priest)
on Sep 29, 2002 at 05:35 UTC ( #201523=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://201523]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2020-07-14 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?