Perl
Practical Extraction and Report Language
Essential Perl syntax
Switches
...to come
Perl substitution
Like SuperCard's replace function, Perl substitutions replace matching text.
Basic syntax
| 's/<match>/<replace>/' | Elements are typically delimited by slashes |
| 's|<match>|<replace>|' | But may be delimited by any appropriate character |
The terminal delimiter may be followed by one or more of the following characters:
| e | replacement consists of an evaluated and/or concatenated result . |
| g | global (replace every occurrence). |
| i | case insensitive. |
Perl regular expressions
Examples
Point list to coordinate list
Top
Comments (0)
You don't have permission to comment on this page.