running two processes at the same time

2008-03-08 Thread ANJAN PURKAYASTHA
hi, here is the problem that i am trying to solve: i have a file of 1000 DNA sequences. for each sequence i run a program X (which comes with a perl wrapper); capture the output of program X in a file; process the file to get some information. now, running X and processing the output file are

Can regular expressions be used as subroutine arguments?

2008-03-08 Thread R (Chandra) Chandrasekhar
Hello Folks, I need to make a substitution in place for each element of an array, and I need to do this to two arrays. Currently the relevant code fragment (without pragmas) is: foreach my $element (@cddb_artist) { $element =~ s/^.*?([0-9,a-f]{8}):.*$/$1/; } foreach my

Re: Can regular expressions be used as subroutine arguments?

2008-03-08 Thread Dr.Ruud
R (Chandra) Chandrasekhar schreef: foreach my $element (@cddb_artist) { $element =~ s/^.*?([0-9,a-f]{8}):.*$/$1/; } foreach my $element (@cddb_track) { $element =~ s/^.*?([0-9,a-f]{8}):.*$/$1/; } You can write all that as this single

Re: Can regular expressions be used as subroutine arguments?

2008-03-08 Thread Chas. Owens
On Sat, Mar 8, 2008 at 9:59 AM, Dr.Ruud [EMAIL PROTECTED] wrote: snip 2. Can arbitrary regular expressions, including /PATTERN/REPLACEMENT/ versions for substitutions, be used as subroutine arguments, and if so, how? Store the parts in variables. snip Specifically, use the qr//

timing a program

2008-03-08 Thread ANJAN PURKAYASTHA
i would like to find out how much time my program or a couple of steps within my program took to run. any idea what command/module i need to use? tia, anjan -- ANJAN PURKAYASTHA, PhD. Senior Computational Biologist == 1101 King Street, Suite 310, Alexandria, VA 22314.

Re: Can regular expressions be used as subroutine arguments?

2008-03-08 Thread John W. Krahn
R (Chandra) Chandrasekhar wrote: Hello Folks, I need to make a substitution in place for each element of an array, and I need to do this to two arrays. Currently the relevant code fragment (without pragmas) is: foreach my $element (@cddb_artist) { $element =~

Re: timing a program

2008-03-08 Thread John W. Krahn
ANJAN PURKAYASTHA wrote: i would like to find out how much time my program or a couple of steps within my program took to run. any idea what command/module i need to use? http://search.cpan.org/~jaw/Devel-Profile-1.05/ http://search.cpan.org/~akaplan/Devel-NYTProf-0.05/ John -- Perl isn't

Re: running two processes at the same time

2008-03-08 Thread John W. Krahn
ANJAN PURKAYASTHA wrote: hi, Hello, here is the problem that i am trying to solve: i have a file of 1000 DNA sequences. for each sequence i run a program X (which comes with a perl wrapper); capture the output of program X in a file; process the file to get some information. now, running X

Re: timing a program

2008-03-08 Thread Gunnar Hjalmarsson
ANJAN PURKAYASTHA wrote: i would like to find out how much time my program or a couple of steps within my program took to run. any idea what command/module i need to use? I guess you want the Benchmark module. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To

Re: timing a program

2008-03-08 Thread Richard Lee
ANJAN PURKAYASTHA wrote: i would like to find out how much time my program or a couple of steps within my program took to run. any idea what command/module i need to use? tia, anjan either just use time program OR read this article.

Re: timing a program

2008-03-08 Thread ANJAN PURKAYASTHA
thanks all ! just tried NYTProfiler. worked like a charm! anjan On Sat, Mar 8, 2008 at 1:24 PM, zentara [EMAIL PROTECTED] wrote: On Sat, 8 Mar 2008 11:27:01 -0500, [EMAIL PROTECTED] (ANJAN PURKAYASTHA) wrote: i would like to find out how much time my program or a couple of steps within my

timing a program run

2008-03-08 Thread ANJAN PURKAYASTHA
thanks to all who replied to my earlier post. just tried out NYTProfiler on my Mac OSX. it worked like a charm! cheers, anjan -- ANJAN PURKAYASTHA, PhD. Senior Computational Biologist == 1101 King Street, Suite 310, Alexandria, VA 22314. 703.518.8040 (office)

Re: FTP server

2008-03-08 Thread ken Foskey
On Thu, 2008-03-06 at 22:48 +0200, Octavian Rasnita wrote: Thank you. I have it already installed and active, but I thought it is just a way of transfering the files by FTP using SSL, using the usernames/passwords of the OS, which I don't want. I want to be able to set a different set of

free servers wanted

2008-03-08 Thread itshardtogetone
Hi, I wish to run my perl/cgi scripts from Windows Internet explorer in offline mode, therefore I need to activate some kind of servers, can someone here recommend me some free servers. Thanks Jim. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: free servers wanted

2008-03-08 Thread Wolf
[EMAIL PROTECTED] wrote: Hi, I wish to run my perl/cgi scripts from Windows Internet explorer in offline mode, therefore I need to activate some kind of servers, can someone here recommend me some free servers. Thanks Jim. http://www.apache.org You'll also want to get php and

Re: free servers wanted

2008-03-08 Thread Gunnar Hjalmarsson
Wolf wrote: [EMAIL PROTECTED] wrote: I wish to run my perl/cgi scripts from Windows Internet explorer in offline mode, therefore I need to activate some kind of servers, can someone here recommend me some free servers. http://www.apache.org You'll also want to get php and mysql from

off topic Re: free servers wanted

2008-03-08 Thread itshardtogetone
Thanks everyone for the help. Originally I intent to use sambar but it has recently discontinue. I wanted to use apache but it seems quite difficult to get it up, please correct me if I am wrong. As I am getting the server just to run my perl script in MS Internet explorer, for learning

why error in this == print hello world;

2008-03-08 Thread itshardtogetone
Hi, Why do I get error for this :- print hello world; Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

how and where to install module

2008-03-08 Thread itshardtogetone
Hi, I wish to use the module shuffle from cpan. I have downloaded perl to c:\perl so where do I install the module to? thanks

Re: why error in this == print hello world;

2008-03-08 Thread Yitzchok Good
On Sun, Mar 9, 2008 at 12:27 AM, [EMAIL PROTECTED] wrote: Hi, Why do I get error foprint hello world;r this :- print hello world; Thanks Without the full code, it's hard to what is going wrong. Having the error message would also help. When I run this command: $ perl -e 'print hello

Re: how and where to install module

2008-03-08 Thread yitzle
On Sun, Mar 9, 2008 at 12:54 AM, [EMAIL PROTECTED] wrote: Hi, I wish to use the module shuffle from cpan. I have downloaded perl to c:\perl so where do I install the module to? thanks If you are using ActiveState Perl, there should be some PMM or PPM tool it installes. (Perl Module