in reply to calculate distance between atoms and a target atom
$ZNx is a different variable from $Znx because Perl is case-sensitive. You really want to start using strict (Tip #1 from the Basic debugging checklist).Name "main::ZNx" used only once: possible typo at .... Name "main::Znz" used only once: possible typo at ....
Also, you probably want to change:
if ($pdbline =~ /OD2 ASP/ or /NE2 HIS/)
to:
if ($pdbline =~ /OD2 ASP/ or $pdbline =~ /NE2 HIS/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: calculate distance between atoms and a target atom
by PerlSufi (Friar) on Dec 02, 2013 at 22:12 UTC |