[Vienna-pm] Parameteruebergabe

e_horn at fh-bingen.de e_horn at fh-bingen.de
Mon Jan 3 07:55:15 CST 2005


Hallo ich bin neu bei euch!
Und hoffe jmd kann mir weiterhelfen.
Ich moechte die Wertr fuer $id in sub pr() uebergeben!
Mit my $id=processNode($accessions->item($i));bekomme ich eine zahl herau
welche ich in my $url einlesen lassen will!
Wie kann ich den Wert von $id hier in ,my $url importieren?
my $url=&get_s("nucl",$id);
Ueber Hilfe waere ich sehr sehr dankbar!
Gruss





sub get_s($da,$id)
{
	my $url='http...db=';
	my $da=$_[0];
	my $id=$_[1];
 	my $pa='&id=';
  	my $m='&retmode=xml';
	return $url.$da.$pa.$id.$m;
}
 

sub pr()
{	
	my $xmldoc = $_[0];
	my $parser = new XML::DOM::Parser;
	my $doc = $parser->parse($xmldoc);
	my $nodes = $doc->getElementsByTagName("...");
	for (my $i=0; $i<$nodes->getLength(); $i++)

	{my $node = $nodes->item($i);
  	 my $accessions=$node->getElementsByTagName("");		
 	my $id=processNode($accessions->item($i));


	my $url=&get_s("nucleo",$id);
	my $doc_s=get $url;}


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


More information about the Vienna-pm mailing list