Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: counter of files? something else?by Random_Walk (Prior) |
on Apr 23, 2015 at 13:29 UTC ( [id://1124394]=note: print w/replies, xml ) | Need Help?? |
I am not sure why you are worried so much about counting files. If you have an array of files, perl will happily skip though them, one at a time, in order, using for. There is lots of stuff here though, that is not accounted for. You are not opening any files to read, $atomcount is a mystery. And the @atom array (probably better used at $atom[$p]) is also unmentioned before now. But anyway, here is a go at wrangling your code a little. It probably won't compile, but may give you some useful hints. If you can post a more complete listing of your code, we may be able to help more
Updateis 'pdb' http://en.wikipedia.org/wiki/Protein_Data_Bank_(file_format) ? Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|