SuperCard Shell Essentials

 

Perl

Page history last edited by DCS 3 yrs ago

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:

ereplacement consists of an evaluated and/or concatenated result .
gglobal (replace every occurrence).
icase insensitive.

 

 

Perl regular expressions

Examples

Point list to coordinate list


Top

Comments (0)

You don't have permission to comment on this page.