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
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
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
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//
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.
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 =~
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
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
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
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.
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
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)
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
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
[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
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
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
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/
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
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
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
21 matches
Mail list logo