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


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

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