in reply to Re^2: calculate distance between atoms and a target atom
in thread calculate distance between atoms and a target atom

My mistake. I updated my original post instead of pasting the code onto another post.
  • Comment on Re^3: calculate distance between atoms and a target atom

Replies are listed 'Best First'.
Re^4: calculate distance between atoms and a target atom
by BrowserUk (Patriarch) on Dec 05, 2013 at 00:00 UTC

    @pdblines is empty, so you never enter your for loop:

    my @pdblines = (); while (<IN>) { for ( @pdblines) {

    I can't begin to work out what you think should happen here.

    BTW: If you indent your code correctly and consistently, more people will be encouraged to consider it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.