in reply to Extracting web data
Your use of '^' is causing problems. '^' marks the beginning of an line and '$' marks the end of a line ("the buck stops here").
If the PMID is always numeric simply use:
if($foo->identifiers() =~ /PMID: (\d+)/) {print FH "$1\n";}
Update: reworded post.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting web data
by smandape1 (Acolyte) on Jun 13, 2011 at 14:37 UTC | |
by zek152 (Pilgrim) on Jun 13, 2011 at 14:42 UTC | |
by Anonymous Monk on Jun 13, 2011 at 17:02 UTC | |
by zek152 (Pilgrim) on Jun 13, 2011 at 17:12 UTC | |
by smandape1 (Acolyte) on Jun 13, 2011 at 17:48 UTC |