Basic HTML version of Foils prepared March 30 97

Foil 72 Some Special Capabilities in formatted writes

From PERL4 Tutorial for CPS616 Computational Science for Information Age Course CPS616 -- February 1995. by Geoffrey C. Fox


Note $| or $OUTPUT_AUTOFLUSH which if nonzero forces a flush after every write or print on current output channel. Default is 0.
Note $: or $FORMAT_LINE_BREAK_CHARACTERS which is set of characters on which to break when processing filled continuation lines (Carat ^ format)
  • default is "\s\n-" to break on whitespace, newline or hyphen
Related is $/ or $INPUT_RECORD_SEPARATOR or $RS (defaulted 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
$^A or $ACCUMULATOR is an accumulator which holds results of write command. This is emptied after write finishes a format but you can access directly through formline() function defined in PERLFUNC and PERLFORM manpages.
  • syntax is formline (PICTURELINE,LIST);
  • which takes LIST of variables and outputs according to PICTURELINE



© 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 Sat Sep 6 1997