Re: please help me to check why this perl script does not work!

2005-05-31 Thread Fei Li
wrote: > > > > -Original Message- > > From: Bob Showalter [mailto:[EMAIL PROTECTED] > > Sent: Sunday, May 29, 2005 5:41 AM > > To: Fei Li; beginners@perl.org > > Subject: Re: please help me to check why this perl script > > does not work! > >

please help me to check why this perl script does not work!

2005-05-29 Thread Fei Li
I wish to submit some protein sequences via LWP:UserAgent to the http://www.cbs.dtu.dk/services/ChloroP/ The error message is given as follows: Webface ErrorWebface Error: Read: Field not declared; 'seqpaste' * #! /usr/bin/perl -w use strict; use HTTP::Reque

foreach + shift

2004-09-10 Thread Fei Li
The source program is: #! /usr/bin/perl -w my @test =qw /test1 test2 test3 test4 test5 test6 test7/; my $count =0; $total = @test; foreach (@test){ my $n= shift (@test); $count++; print "$n $count of $total\n"; print "@test\n"; } print "\n\n==\n\n"; foreach (@test){ $count