Your skill will accomplish
what the force of many cannot
... architecting & implementing help w/ Perl...by rickkar (Initiate)
|on Oct 25, 2012 at 16:37 UTC||Need Help??|
rickkar has asked for the
wisdom of the Perl Monks concerning the following question:
i really just need some basic s/w engring architecting guidance... when i say 'architecting' -- i mean pseudo-code/stmts i can go after in the Perl book i have... and hopefully online examples...
i'm using Perl and i'm trying to parse Medline/Pubmed file paths on a Unix system in order to finally pass the PMID from each path to a pmid2doi conversion website < http://www.pmid2doi.org/ > ...
the structure of each link is of the form... /xxxxx/xxxxx/xxxxx/xxxxx/xxxxx/UNC00000000000042/00223468/v45i3/S0022346809003820
18507872 main.pdf main.raw main.xml
where: 00223468 <-- this is the PMID
so far, in Perl, i've got something that looks like this...
the website < http://www.pmid2doi.org/ > requires inputting the PMID in order to get back the DOI...
this is what i need to get running in Perl... and i need a little help in architecting & implementing this...
given your development background, i'm grateful for any insights... or recommended sites for generating regular expressions in Perl...
thanks very much!
I see that http://www.pmid2doi.org/ says the REST API expects the http://www.pmid2doi.org/ PLUS the DOI value.
So I need to find some example Perl code that gets a REST value from a URL.
In REST I just prepare the URL as specified and then the returned result should be the value I want.