Re: Extract user from email address

2007-02-03 Thread Dr.Ruud
Rob Dixon schreef: > [academica] > my ($user) = ($email =~ /(.+?)[EMAIL PROTECTED]/); > > which would put the part of the email up to the 'at' sign into $user. > But there's no need to match anything after the at, so you could write > > my ($user) = ($email =~ /(.+?)\@/); Email addresses can hav

Re: sending a variable in a Net::SMTP message not working

2007-02-03 Thread Romeo Theriault
On 2/2/07, Mumia W. <[EMAIL PROTECTED]> wrote: On 02/02/2007 02:25 PM, Romeo Theriault wrote: > [...] >my $smtp = Net::SMTP_auth->new('miranda.umfk.maine.edu'); >$smtp->auth('LOGIN', 'user', 'password'); > >$smtp->mail($from); >$smtp->to($to); >$smtp->data(); >$smtp->data

Re: Does Minimal Perl works for beginners?

2007-02-03 Thread Peter Scott
On Fri, 02 Feb 2007 10:23:34 -0800, Hoffmann wrote: > I am a Perl beginners, and I have heard about Minimal Perl. Could you, > please, let me know if that would be a good option for a beginners start > learning/practice Perl? Or that 'flavour' of the language would work > better for more advance

Re: C language and bioinformatics

2007-02-03 Thread I BioKid
Hi, Perl is the preffered language for basic bioinformatics programng, say seqeuence (manipulation) and structure analysis is much more easier in perl than in any other language. Now a days python is also favoured by computational biologists looking in to the sequence data. We have lots of module

Re: split w. regex question/problem

2007-02-03 Thread Rob Dixon
John W. Krahn wrote: > Gauthier, Dave wrote: >> Getting unwanted list elements when using split with regex. Here's an example $str = "abc=In"; @arr = split(/[a-zA-Z0-9]/,$str); foreach $a (@arr) {print "$a\n";} I get... <> <> <> <=> If I change "abc=In" to "abcdef=In", I get 6 un

Re: command execution

2007-02-03 Thread Klaus Jantzen
Sayed, Irfan (Irfan) wrote: Hi All, I am executing following script. but even if the command execution fails it prints as success exit status = 0 can anybody please help Regards Irfan. use strict; use warnings; my $CT = '/usr/atria/bin/cleartool'; print " Creating the view for VB \n"; my $c

Re: split w. regex question/problem

2007-02-03 Thread John W. Krahn
Rob Dixon wrote: > John W. Krahn wrote: >> >> Gauthier, Dave wrote: >>> >>> Getting unwanted list elements when using split with regex. Here's an >>> example >>> >>> $str = "abc=In"; >>> @arr = split(/[a-zA-Z0-9]/,$str); >>> foreach $a (@arr) >>> {print "$a\n";} >>> >>> I get... >>> >>> <> <

Re: C language and bioinformatics

2007-02-03 Thread mike clemow
Hi, There are some O'Reilly books on the topic of Perl and Bioinformatics as well. I haven't read them. http://www.oreilly.com/catalog/begperlbio/ http://www.oreilly.com/catalog/mperlbio/ Cheers, Mike On 2/3/07, I BioKid <[EMAIL PROTECTED]> wrote: Hi, Perl is the preffered language for basi

Please help with convoluted script

2007-02-03 Thread Mathew Snyder
I have a script which is supposed to query a database and compile data for every day of the week prior to when it runs. I thought I had set it so that if the first of a month falls in the middle of the week it would roll the month back to the previous one after all the data for the first is gather