Basic HTML version of Foils prepared April 16,1996

Foil 48 Some Further Perl4 and Perl5 Functions
-- do and glob!

From Perl5 and Advanced Perl4 Features Computational Science for Information Age Course CPS616 Material -- April 16,1996. by Geoffrey C. Fox


1 do "filename.pl"; or more generally do EXPR; # where EXPR returns a string which is taken as a filename
2 Perl executes contents of file specified by string
3 This is a good way of loading in a block of subroutines
4 glob EXPR returns the value of EXPR with conventional UNIX shell filename expansion
  • glob 'string' is equivalent to <string> where string has UNIX * wildcarding

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