Basic HTML version of Foils prepared Sept 20 97

Foil 41 Some Predefined Variables in Perl - II

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


1 A match m/regexp/; or equivalent s pattern match sets
2 $MATCH or $& -- The matched string
3 $PREMATCH or $` to be string before matched string
4 $POSTMATCH or $' to be string after matched string
5 $LAST_PAREN_MATCH or $+ contains material in last paranthesis matched
  • useful when | syntax in regular expression make in unclear which $n is set for last paranthesis

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 5 1998