Please log into your user account or create a new one
Solution for: #39: Reversing PDB files to PML
Use the Perl module EBook::Tools::EReader
-
yliu on April 26, 2009, 02:47 PM UTC
Best solution so far is to
1. use CPAN to install EBook::Tools::EReader
2. Either use this sample code directly in a .pl file
3. or open up a Perl interactive debugger
and drop all the my declarations from the above snippet.
You can probably whip up a quick Perl script to do this directly and print to STDOUT. Too lazy today to write that code for just this single-use case.
1. use CPAN to install EBook::Tools::EReader
2. Either use this sample code directly in a .pl file
1 use EBook::Tools::EReader; 2 my $pdb = EBook::Tools::EReader->new(); 3 $pdb->Load('myfile-er.pdb'); 4 my $html = $pdb->html; 5 my $pml = $pdb->pml; 6 print $pml;
3. or open up a Perl interactive debugger
1 perl -d -e 1
and drop all the my declarations from the above snippet.
You can probably whip up a quick Perl script to do this directly and print to STDOUT. Too lazy today to write that code for just this single-use case.
