in reply to using WWW::Mechanize to download a link, opened fine in TextWrangler but as junk in TextEdit

I think that you were looking for something like WWW::PDB. This seems easier:
#!/usr/bin/perl use strict; use warnings; use WWW::PDB qw(:all); WWW::PDB->cache('/user/Desktop/mech'); my $fh = get_structure('2cu3'); print while <$fh>;
  • Comment on Re: using WWW::Mechanize to download a link, opened fine in TextWrangler but as junk in TextEdit
  • Download Code

Replies are listed 'Best First'.
Re^2: using WWW::Mechanize to download a link, opened fine in TextWrangler but as junk in TextEdit
by nurulnad (Acolyte) on Aug 19, 2010 at 13:44 UTC
    Thank you so much. Thank you so much!!