freak has asked for the wisdom of the Perl Monks concerning the following question:
when i define 2 molecules like:
use Chemistry::Mol; $mol = Chemistry::Mol->new(id => "mol_id", name => "my molecule"); $c = $mol->new_atom(symbol => "C", coords => [0,0,0]); $o = $mol->new_atom(symbol => "O", coords => [0,0,1.23]); $mol->new_bond(atoms => [$c, $o], order => 3);
How can i combine them into one molecula ? like : $z = $c + $o; ?
print $mol->print;
20040501 Edit by Corion: Moved it to SoPW and added formatting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Combining two molecules with the perl chemistry modules
by Corion (Patriarch) on May 01, 2004 at 21:30 UTC | |
Re: Combining two molecules with the perl chemistry modules
by simonm (Vicar) on May 01, 2004 at 21:33 UTC | |
Re: Combining two molecules with the perl chemistry modules
by Anonymous Monk on May 03, 2004 at 23:39 UTC | |
Re: Combining two molecules with the perl chemistry modules
by Mr. Muskrat (Canon) on May 03, 2004 at 05:18 UTC | |
Re: Combining two molecules with the perl chemistry modules
by CountZero (Bishop) on May 02, 2004 at 20:39 UTC |
Back to
Seekers of Perl Wisdom