RE: Reading contents of file

2006-01-08 Thread Dhanashri Bhate
Ok, got it now :-) , sorry, I misunderstood your problem earlier. If you are expecting multiple matches in a single line, then i would suggest, keep the regex match as it is i.e. while ($line=~m/([123]?[\.\s]*[a-z\\=\.]+)/oi), But inside the loop when you a find a match and do relevant things, m

Re: Want to develop a windows based application

2006-01-08 Thread Octavian Rasnita
From: "Anish Kumar K." <[EMAIL PROTECTED]> Hi I want to develop a windows based application with PERL. Can anyone tell me which is best way to go.. You can use the following libraries: Win32::GUI It is the most simple to use, it creates accessible programs for screen readers, it uses the st

RE: Reading contents of file

2006-01-08 Thread anand kumar
Hi I have already tried the way u have told but when i use ' while($line=)' and the regex in the if loop then the regex pattern is matched only once in the current line and does'nt get repeated for the same line with differnt bookname present in the same line. For Eg. If the

RE: Reading contents of file

2006-01-08 Thread Dhanashri Bhate
Hi Anand, You know where its going wrong then change it :) Ok, I haven't gone into the regex etc. but I see these 2 major problems: 1. $line=; should be also there inside the while loop, to make the program get the next line in the file, and hence eventually come out of the loop when it reaches E

Reading contents of file

2006-01-08 Thread anand kumar
Hi I am new to PERL. I have a doubt, The following script is used to read the contents of a file (word by word (or) word preceeded by a number), check for the existence of the matched pattern which is done by the help of bookref() sub, if it is found then the matched pattern is prefixed

Re: Want to develop a windows based application

2006-01-08 Thread Chris Devers
On Mon, 9 Jan 2006, Anish Kumar K. wrote: > I want to develop a windows based application with PERL. Can anyone > tell me which is best way to go.. Make it web-based and then access it from IE or Firefox on Windows or any other platform. That's often the easiest way to do it. If you want a gra

RE: testing perl

2006-01-08 Thread Owen Cook
On Mon, 9 Jan 2006, Saurabh_Agarwal wrote: > I want to know how to use perl -d Try perldoc -q debug - Found in /usr/share/perl/5.8/pod/perlfaq3.pod How do I debug my Perl programs? lots more Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Want to develop a windows based application

2006-01-08 Thread Anish Kumar K.
Hi I want to develop a windows based application with PERL. Can anyone tell me which is best way to go.. Anis

RE: testing perl

2006-01-08 Thread Chris Devers
On Mon, 9 Jan 2006, Saurabh_Agarwal wrote: > I want to know how to use perl -d perldoc perldebug -- Chris Devers DO NOT LEAVE IT IS NOT REAL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: testing perl

2006-01-08 Thread Saurabh_Agarwal
I want to know how to use perl -d -Original Message- From: Owen Cook [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 10:51 AM To: Saurabh_Agarwal Cc: beginners@perl.org Subject: Re: testing perl On Mon, 9 Jan 2006, Saurabh_Agarwal wrote: > How can we test our Perl script? At

Re: testing perl

2006-01-08 Thread Chris Devers
On Mon, 9 Jan 2006, Saurabh_Agarwal wrote: > How can we test our Perl script? We can test our Perl script carefully. -- Chris Devers DO NOT LEAVE IT IS NOT REAL -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: testing perl

2006-01-08 Thread Owen Cook
On Mon, 9 Jan 2006, Saurabh_Agarwal wrote: > How can we test our Perl script? At the command prompt run #perl -c script.pl If there are no errors, it compiles ok If there are errors, fix them then run #perl script.pl and see if your logig is correct HTH Owen -- To unsubscribe, e-mai

testing perl

2006-01-08 Thread Saurabh_Agarwal
How can we test our Perl script? DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forward

Re: executing external binaries

2006-01-08 Thread Dr.Ruud
Shawn Corey: > Saurabh Singhvi: >> the external binary is HUGE in terms of ram usage so i need a way to >> keep it loaded in the memory >> so that i can keep passing the next parameters, instead of loading >> it each time. > > If you're running UNIX you can set the binary's sticky bit. See `man >

Re: script to count message sizes on an imap server

2006-01-08 Thread Tom Phoenix
On 1/8/06, Martin J Hooper <[EMAIL PROTECTED]> wrote: > Does anyone know of a script I can download That's a poor way to open a message in a programming forum; it makes it sound as if you don't plan to write any code yourself! Since this is a forum for beginning Perl programmers, you could at leas

Re: executing external binaries

2006-01-08 Thread Saurabh Singhvi
hi all thanks for the help!! i am hoping to use the chmod thing or the one from zentara. thanks again Saurabh On 1/8/06, zentara <[EMAIL PROTECTED]> wrote: > > On Sat, 7 Jan 2006 11:09:25 +, [EMAIL PROTECTED] (Saurabh > Singhvi) wrote: > > >hi people > > > >i have a script that executes ext

Re: script to count message sizes on an imap server

2006-01-08 Thread Chris Devers
On Sun, 8 Jan 2006, Martin J Hooper wrote: > Does anyone know of a script I can download which will connect to my > IMAP server and transverse all folders counting up the size of each > message in the folder and then spitting it out..? > > I'm sure I'm not the only one to want to do this... ;)

Re: new for reading file containing multiple records

2006-01-08 Thread chen li
Hi Shawn, Thanks for the detailed explanations. But Edward(see one of posts in my thread) tells me to try Bio::SeqIO from www.bioperl.org. After I try I think it is what I really need. Once again thank you so much for the help. Li __

script to count message sizes on an imap server

2006-01-08 Thread Martin J Hooper
Does anyone know of a script I can download which will connect to my IMAP server and transverse all folders counting up the size of each message in the folder and then spitting it out..? I'm sure I'm not the only one to want to do this... ;) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: new for reading file containing multiple records

2006-01-08 Thread Shawn Corey
chen li wrote: You are 50% right. This method is not correct for the first record(which actually contains ">' only) but it is correct for the last record(and others in between). I want to edit the file first and try to delete the first ">" in this big file. I browse Programming Perl and Perl

Re: Need some help and direction

2006-01-08 Thread Shawn Corey
Daniel Gladstone wrote: I thought this would be easy but I can not get it to work - can someone please help me: Problem: I have a file of 7.5 million records that are pipe delimted, the first field is a record number. I want to search for around 10 records with a specific record number and if