HackaMol::Roles::FileFetchRole - Role for using LWP::Simple to fetch files from www
version 0.053
use HackaMol; my $pdb = $HackaMol->new->get_pdbid("2cba"); print $pdb;
FileFetchRole provides attributes and methods for pulling files from the internet. Currently, the Role has one method and one attribute for interacting with the Protein Database.
fetches a pdb from pdb.org and returns the file in a string.
arguments: pdbid and filename for writing (optional). Fetches a pdb from pdb.org and stores it in your working directory unless {it exists and overwrite(0)}. If a filename is not passed to the method, it will write to $pdbid.pdb. use get_pdbid to return contents
isa lazy ro Bool that defaults to 0 (false). If overwrite(1), then fetched files will be able to overwrite those of same name in working directory.
isa lazy rw Str that defaults to http://pdb.org/pdb/files/
http://www.pdb.org
LWP::Simple
Demian Riccardi <demianriccardi@gmail.com>
This software is copyright (c) 2017 by Demian Riccardi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HackaMol, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HackaMol
CPAN shell
perl -MCPAN -e shell install HackaMol
For more information on module installation, please visit the detailed CPAN module installation guide.