Basic HTML version of Foils prepared Sept 20 97

Foil 66 Some Special Capabilities in Formatted Writes

From Tutorial on PERL Computational Science for Information Age Course CPS616 -- Sept 20 97. by Geoffrey C. Fox,Nancy McCracken,Tom Scavo


Note $| or $OUTPUT_AUTOFLUSH if nonzero forces a flush after every write or print on current output channel. Default is 0.
Note $: or $FORMAT_LINE_BREAK_CHARACTERS is set of characters on which to break when processing filled continuation lines (caret ^ format)
  • default is "\s\n-" to break on whitespace, newline, or hyphen
Related is $/ or $INPUT_RECORD_SEPARATOR or $RS (defaults to newline) which is very useful when processing HTML where newlines are irrelevant and you set $/ to say < or > to scan to next tag or end of tag and ignore newlines
  • This is valid in conventional <FILEHANDLE> syntax



© 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 Sep 21 1997