Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cme!durer.cme.nist.gov!przemek From: przemek@rrdstrad.nist.gov (Przemek Klosowski) Newsgroups: comp.lang.perl Subject: Question (several inputs, associative arrays) Message-ID: Date: 11 Apr 91 21:07:54 GMT Sender: news@cme.nist.gov Organization: U. Notre Dame/NIST Lines: 22 I am just starting to use Perl. I would like to learn the `proper' way to use Perl, so before I start hacking away, I thought I would ask the gurus for the clean approach to my problem: a script to load huge amount of fonts to the printer. The fonts exist in a directory, and they have to be downloaded to the printer under a unique index number, provided by a file with font names/magnifications and corresponding index numbers. So my in my script I could search the index file for each filename; I suspect that it could be done with the associative array, somehow like that: index = index_array[Font_Name_and_Magn] but I couldn't figure out how to initialize this array and then switch input streams to read the filenames. The Perl manual is SOOO terse. Thank you for your help przemek -- przemek klosowski (przemek@ndcvx.cc.nd.edu) Physics Department University of Notre Dame IN 46556