File opening problem

2008-05-12 Thread Tatiana Lloret Iglesias
Hi all! i'm running the following dummy program which just opens a file and I get an error (die message) #!/usr/bin/perl if ( @ARGV[0] eq '' ) { print \nUSAGE:\n\t genenames.pl genes.txt \n\n; exit; } my $file = $ARGV[0]; open(FICH,$file) or die cannot open $file; I've tried to

Beginner Reg.Expression Question

2007-10-10 Thread Tatiana Lloret Iglesias
Hi all! What regular expression do I need to convert Version: 1.2.3 to Version: 1.2.4 ? I.e. my pattern is Version: number.number.number and from that i need Version: number.number.number+1 After the : i can have a space or not... Thanks! T

Re: Beginner Reg.Expression Question

2007-10-10 Thread Tatiana Lloret Iglesias
Thanks a lot !! T On 10/10/07, Rob Dixon [EMAIL PROTECTED] wrote: Tatiana Lloret Iglesias wrote: Hi all! What regular expression do I need to convert Version: 1.2.3 to Version: 1.2.4 ? I.e. my pattern is Version: number.number.number and from that i need Version

Accessing to a HTML Frame

2007-07-25 Thread Tatiana Lloret Iglesias
Hi all! I need to save locally lower Frame of: http://www.wipo.int/patentscopedb/en/wads.jsp?IA=CA2006001738LANGUAGE=ENID=id0005063181VOL=70DOC=011820WO=07/045101WEEK=17/2007TYPE=A2DOC_TYPE=PAMPHPAGE=HTML When I browse this page from my perl i only get .html where frames are defined:

delete from java temporary file generated from PERL

2007-06-29 Thread Tatiana Lloret Iglesias
Hi all! From my Java application I call a PERL process which generates some files. When I come back to the Java part and I process these files I try to delete them and some of them are deleted correctly but other not... Any idea? I've checked that I call CLOSE methods everytime I create a

exit code

2007-06-29 Thread Tatiana Lloret Iglesias
Hi all, when I execute my perl script in my local machine and I get to a controlled error situation i've got as exit value 777 if(!$test){ $failed_times =$failed_times +1; if($failed_times ==3) { exit(777); } sleep 15; }# if $test but when i execute the same script with

Re: exit code

2007-06-29 Thread Tatiana Lloret Iglesias
Sorry.. but I don't understand what do you mean ... On 6/29/07, Paul Johnson [EMAIL PROTECTED] wrote: On Fri, Jun 29, 2007 at 11:08:19AM +0200, Tatiana Lloret Iglesias wrote: Hi all, when I execute my perl script in my local machine and I get to a controlled error situation i've got

Re: exit code

2007-06-29 Thread Tatiana Lloret Iglesias
And why i windows I get exit value 777? On 6/29/07, Martin Barth [EMAIL PROTECTED] wrote: exit codes are stored in 1 byte. so you can only exit with 2^8 == 256 different values. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

call system command

2007-05-14 Thread Tatiana Lloret Iglesias
Hi all, I have to execute this command from perl: my $status = system(d:\\blast\\bin\\blastall -p blastn -i $file -d $patDB -o $workdir\\blast_$blast_file_id.txt); but the problem is that $workdir contains spaces how can I make it work? Thanks! Regards T

Re: call system command

2007-05-14 Thread Tatiana Lloret Iglesias
Thank a lot! Another related question,,, system command can be used also for linux? Regards T On 5/14/07, Xavier Noria [EMAIL PROTECTED] wrote: On May 14, 2007, at 3:44 PM, Tatiana Lloret Iglesias wrote: Hi all, I have to execute this command from perl: my $status = system(d:\\blast

scape . character

2007-04-27 Thread Tatiana Lloret Iglesias
Hi all! how can I create a regular expression to find a software version pattern in a file (e.g. 1.2.0) and return the last number , i.e. 0 Thanks! T

Re: scape . character

2007-04-27 Thread Tatiana Lloret Iglesias
thanks a lot!! And how can I locate the version String it self in the file? bla bla bla bla bla bla 1.2.0 bla bla bla bla bla my pattern is number.number.number Thanks! T On 4/27/07, Jeff Pang [EMAIL PROTECTED] wrote: 2007/4/27, Tatiana Lloret Iglesias [EMAIL PROTECTED]: Hi all! how

Re: URL too long

2007-03-01 Thread Tatiana Lloret Iglesias
problems but in a external website ... if the form is GET how can I use POST?? Thanks! T On 2/28/07, Tom Smith [EMAIL PROTECTED] wrote: Tatiana Lloret Iglesias wrote: but the problem is that i cannot modify form html code because it's a public external website If the QUERY_STRING is too

Re: URL too long

2007-03-01 Thread Tatiana Lloret Iglesias
Thanks a lot ... unfortunately URL doesnt work from a browser So finally i'm parsing the long query manually and joining results at the end.. Thanks! T On 3/1/07, Tom Phoenix [EMAIL PROTECTED] wrote: On 3/1/07, Tatiana Lloret Iglesias [EMAIL PROTECTED] wrote: The query is so long

URL too long

2007-02-28 Thread Tatiana Lloret Iglesias
Hi all, i have to browse a very long URL from my PERL script and it fails:

Re: URL too long

2007-02-28 Thread Tatiana Lloret Iglesias
2007 at 18:57, Tatiana Lloret Iglesias wrote: Hi all, i have to browse a very long URL from my PERL script and it fails: http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2Sect2=HITOFFu=%2Fnetahtml%2FPTO%2Fsearch-adv.htmlr=0p=1f=Sl=50Query=%28%22NRF3%22+AND+%22Colorectal+Cancer%22%29+OR+%28

Re: URL too long

2007-02-28 Thread Tatiana Lloret Iglesias
but the problem is that i cannot modify form html code because it's a public external website ... Thanks! t -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

url encode

2007-01-31 Thread Tatiana Lloret Iglesias
Hi, i'm trying to get this url but i get an error: http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO2Sect2=HITOFFu=%2Fnetahtml%2FPTO%2Fsearch-adv.htmr=1p=1f=Gl=50d=PTXTS1=%22clear+dead%22OS=%22clear+dead%22RS=%22clear+dead%22 my $response = $ua-get($url); how should i encode it? I've tried

Perl X file

2007-01-30 Thread Tatiana Lloret Iglesias
Hi all, i've got a perl script which does the following: 1. gets html page with SEARCH FORM 2. Introduce QUERY content and press Search button 3. Several pages are obtained 4. Process the first page and press NEXT PAGE BUTTON and continue processing next pages Problem: When Query contains

Re: perl and network connection

2007-01-24 Thread Tatiana Lloret Iglesias
it in local files .. so nothing strange Thanks! T. http://cuandomemiras.blogspot.com On 1/9/07, Tatiana Lloret Iglesias [EMAIL PROTECTED] wrote: Hi all, i'm developping a perl script which uses WWW-Mechanize and performs a big number of submit_form I've noticed that because

Re: perl and network connection

2007-01-24 Thread Tatiana Lloret Iglesias
Thanks a lot ... I asked it because I thought that perhaps in perl there was some kind of QUEUE object to manage a big number of connections or some kind of homemade solutions with SLEEP or something like that ... T On 1/24/07, Jay Savage [EMAIL PROTECTED] wrote: On 1/24/07, Tatiana Lloret

Re: files download and performance

2007-01-22 Thread Tatiana Lloret Iglesias
to this? can you give me some advice? Thanks T. On 1/15/07, Rob Dixon [EMAIL PROTECTED] wrote: Tatiana Lloret Iglesias wrote: Hi all, from my java applicaation i invoke a perl script which downloads a huge quantity of files from an external database using WWW-mechanize library and my

Re: files download and performance

2007-01-22 Thread Tatiana Lloret Iglesias
[EMAIL PROTECTED] wrote: Hi Tatiana, 2007/1/22, Tatiana Lloret Iglesias [EMAIL PROTECTED]: Regarding the performance problem: The schema of my application is: 1. I execute perl script which performs a search in a public database. It gets total results in *several pages*. Pressing Next Page

Re: files download and performance

2007-01-22 Thread Tatiana Lloret Iglesias
I SPEND 6 SECONDS for a 86 kb html, Is it ok? Can i perform these 2 steps faster? Thanks! T On 1/22/07, Igor Sutton [EMAIL PROTECTED] wrote: Hi Tatiana, 2007/1/22, Tatiana Lloret Iglesias [EMAIL PROTECTED]: I do it from the JAva and not from the PErl because i need to perform an insert

Re: files download and performance

2007-01-22 Thread Tatiana Lloret Iglesias
does it work for this kind of urls? http://patft.uspto.gov/netacgi/nph-Parser? thanks! T. On 1/22/07, Igor Sutton [EMAIL PROTECTED] wrote: Hi Tatiana, 2007/1/22, Tatiana Lloret Iglesias [EMAIL PROTECTED]: i've realized that for each link, i spend most of the time in the following perl

Re: files download and performance

2007-01-22 Thread Tatiana Lloret Iglesias
PROTECTED] wrote: Hi Tatiana, 2007/1/22, Tatiana Lloret Iglesias [EMAIL PROTECTED]: does it work for this kind of urls? http://patft.uspto.gov/netacgi/nph-Parser? thanks! T. For these kind of problem, you always have URI: code #!env perl use strict; use warnings; use URI; my $url = http

files download and performance

2007-01-15 Thread Tatiana Lloret Iglesias
Hi all, from my java applicaation i invoke a perl script which downloads a huge quantity of files from an external database using WWW-mechanize library and my problem is that I have big CPU performance problems ... can you give me any advice to avoid this? Thanks! T.

perl and network connection

2007-01-09 Thread Tatiana Lloret Iglesias
Hi all, i'm developping a perl script which uses WWW-Mechanize and performs a big number of submit_form I've noticed that because of the execution of this script network connection fails intermitently ... how can i avoid this? Thanks T.

Re: Fwd: click_button gives error on a existing button

2006-12-29 Thread Tatiana Lloret Iglesias
the whole script in http://tlloreti.googlepages.com/pct3.pl Thanks! T. On 12/28/06, Owen [EMAIL PROTECTED] wrote: On Thu, 28 Dec 2006 09:53:05 +0100 Tatiana Lloret Iglesias [EMAIL PROTECTED] wrote: Thanks Owen, but in this case, inspecting the html page i see that the button hasn't got NAME

Fwd: click_button gives error on a existing button

2006-12-28 Thread Tatiana Lloret Iglesias
and the button exists! A real X file ... T. On 12/28/06, Owen Cook [EMAIL PROTECTED] wrote: On Thu, Dec 28, 2006 at 08:46:25AM +0100, Tatiana Lloret Iglesias wrote: Hi! I'm executing this perl and I get an error in this line_ $browser2-click_button( value = Next 25 records); but i dont

click_button gives error on a existing button

2006-12-27 Thread Tatiana Lloret Iglesias
Hi! I'm executing this perl and I get an error in this line_ $browser2-click_button( value = Next 25 records); but i dont understand why because Next 25 records button exists!! Can you help me with this please? You can download the script from: http://tlloreti.googlepages.com/pct3.pl Thanks a

click_button gives error on a existing button

2006-12-27 Thread Tatiana Lloret Iglesias
Hi! I'm executing this perl and I get an error in this line_ $browser2-click_button( value = Next 25 records); but i dont understand why because Next 25 records button exists!! Can you help me with this please? You can download the script from: http://tlloreti.googlepages.com/pct3.pl Thanks a