develooper Front page | perl.beginners | Postings from August 2009

Creating array variable names on the fly

Thread Next
From:
ANJAN PURKAYASTHA
Date:
August 28, 2009 05:39
Subject:
Creating array variable names on the fly
Message ID:
f03f40920908280539s1d18ded6oe2d10efb4383a1c1@mail.gmail.com
Hi,
I have a question on creating array variables.  I have a driver script that
takes as input the number of files to be processed (say 7).  One of the
children scripts needs to create array variables based on how many files are
being processed (in this case 7).  How do I code the following action into
the child script: read the number of files to be processed. based on this
number create a set of arrays say @array1, @array2....@array7"?

Appreciate your feedback.
TIA,
Anjan

-- 
=============================
anjan purkayastha, phd
bioinformatics analyst
whitehead institute for biomedical research
nine cambridge center
cambridge, ma 02142

purkayas [at] wi [dot] mit [dot] edu
703.740.6939

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About