Basic HTML version of Foils prepared April 16,1996

Foil 37 A Hash of Arrays in class HTML::FormatPS

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


# We show this example of $PaperSizes{}[] which is a Hash whose key references a 2D array
%PaperSizes =
(
A3 => [mm(297), mm(420)], # mm is built in subroutine
A4 => [mm(210), mm(297)], # to convert millimeteres to points
);
so $PaperSizes{'A4'} returns a two dimensional array



© 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