Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanksopen (Struct, "N_structures.txt"); while (<Struct>) { /(\d+).*/; $number = $1; open (info_web, "<" . "$number" ."_info.txt"); $i=1; while (<info_web>) { if (/^(\d+\.\d+)\D/) {$GU_web = $1;} if ($i >1) { last;} print "$GU_web\n"; $i++; } close (info_web); #open (image, "<" . "images/" . "$number" . "gif"); $image = <IMG SRC="images/$number.gif">; open (name, "<" . "gly_structures.txt"); while (<name>) { ($ref_num, $glycan_name) = (split /| +/, $_); if ($ref_num == $number) {$structure +_name = $glycan_name;} } $insert_html = <td>$GU</td> <td>$image</td> <td>structure_name></td> }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi question
by tlm (Prior) on Jun 03, 2005 at 13:52 UTC | |
by Anonymous Monk on Jun 03, 2005 at 14:24 UTC | |
by tlm (Prior) on Jun 03, 2005 at 15:27 UTC | |
by Anonymous Monk on Jun 03, 2005 at 14:28 UTC | |
|
Re: cgi question
by Tomtom (Scribe) on Jun 03, 2005 at 13:44 UTC | |
by Anonymous Monk on Jun 03, 2005 at 13:53 UTC | |
by Tomtom (Scribe) on Jun 03, 2005 at 14:19 UTC |