/e flag says "replacement is code to generate a string".s/(\d+)C/($1*9/5)+32 . "F"/ge; |
s/(\$\w+)/$1/gee; # expand variables |
| Forward to Typeglobs
Back to Flexibility of the object system Up to Stages of a Perl Programmer section index Up to YAPC 2000 course index |
YAPC 2000: Stages of a Perl Programmer - 31
Copyright © 2000, Nathan Torkington
|