in reply to Confused when reading Input within Perl and Shell Scripts
Where will the file names come from? Will you provide a file containing the names? Do you want to process all the files in a given directory? Do you want to hard wire the list of names in the Perl script? For the moment lets assume you have resolved that issue and have an array @filenames that contains the names of the files to process. You could then:
for my $filename (@filenames) { open my $dsspIn, '<', $filename or die "Unable to open $filename: +$!\n"; #Create a new DSSP object my $dssp_obj = Bio::Structure::SecStr::DSSP::Res->new ('-file'=> $ +dsspIn); ... close $dsspIn; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Confused when reading Input within Perl and Shell Scripts
by InfoSeeker (Novice) on Nov 16, 2008 at 23:17 UTC | |
by GrandFather (Saint) on Nov 16, 2008 at 23:28 UTC |