From: "E.Horn" <[EMAIL PROTECTED]> > Hello! > Can someone help me with my programm that does not work. > i do not get the mistake. > The output is always the same, if i use &daten_einlesen("nucleotide") > or > > &daten_einlesen("proteine") there is no difference! > What have I done wrong? > <code snipped> > > sub daten_einlesen() > > { my > $url='http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=protei > ne' > > my [EMAIL PROTECTED];
The problem is the line above. You are evaluating the @_ in scalar context and assigning the result to $datenbank. And an array in scalar context evaluates to the number of elements. So you end up with 1 in $datenbank. You need either my $datenbank = shift(); or my ($datenbank) = @_; HTH, Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>