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 Llor

Re: How to customize Perl installation

2007-01-24 Thread Bill Jones
On 1/23/07, Jeff Peng <[EMAIL PROTECTED]> wrote: > I'm not experienced with Red Hat, but I'd bet it > already contains Perl > core and CGI.pm. > Sorry,I mean I only need Perl core and CGI.pm to be installed on my host,other modules are excluded. Does this command give a LOT of output? perl

Re: Sending mail

2007-01-24 Thread Bill Jones
On 1/24/07, M. Lewis <[EMAIL PROTECTED]> wrote: I've used MIME::Lite for the mail tasks I've had up till now and it has worked very well. Now I need to send mail via a different port than port 25, say port 587. As far as I can tell, MIME::Lite does not have this capability. Can someone point me

Sending mail

2007-01-24 Thread M. Lewis
I've used MIME::Lite for the mail tasks I've had up till now and it has worked very well. Now I need to send mail via a different port than port 25, say port 587. As far as I can tell, MIME::Lite does not have this capability. Can someone point me to a different mailer that does have this ca

Re: substituting one variable, assign to another

2007-01-24 Thread Dr.Ruud
Kevin Viel schreef: > ( my $sym = substr( $_ , $initial_position , $length )) =~ s/\s//g ; > push @Symbol , $sym ; > > It may be too much, but it still looks pretty clear to me. Nobody forces you to put as much as possible in 1 line. Verboser: my $sym = substr $_, $start, $length; sym =~ s

Re: Perl SSH

2007-01-24 Thread Bill Jones
On 1/24/07, Dukelow, Don <[EMAIL PROTECTED]> wrote: by "ssh". Can someone regimen a Perl "ssh" module that works with Net::Telnet? I see there are several out there. I am partial to this one: http://search.cpan.org/~dbrobins/Net-SSH-Perl-1.30/ -- WC (Bill) Jones -- http://youve-reached-the.

Re: perl and network connection

2007-01-24 Thread Jay Savage
On 1/24/07, Tatiana Lloret Iglesias <[EMAIL PROTECTED]> wrote: Anyone can help me with this issue? No. the situation is: 1. network is working perfectly 2. i execute my perl script which download a big number of web pages into local html 3. the network starts to disconnect intermintently ...

parsing XML

2007-01-24 Thread Kevin Viel
I have obtain results of a query in XML format: 2004//EN" "http://www.ncbi.nlm.nih.gov/entrez/query/DTD/eSummary_041029.dtd";> 4609 MYC v-myc myelocytomatosis viral oncogene homolog (avian) Homo sapiens 0 0 8 genomic 8

Re: perl and network connection

2007-01-24 Thread Tatiana Lloret Iglesias
Anyone can help me with this issue? the situation is: 1. network is working perfectly 2. i execute my perl script which download a big number of web pages into local html 3. the network starts to disconnect intermintently ... In my script i use Mechanize to submit forms, get web content and save

Perl SSH

2007-01-24 Thread Dukelow, Don
I've been using Net::Telnet module to connect to network switches around here. But now I've found out that a few switches can only be connected to by "ssh". Can someone regimen a Perl "ssh" module that works with Net::Telnet? I see there are several out there. Don Dukelow smime.p7s Descriptio

Re: substituting one variable, assign to another

2007-01-24 Thread Kevin Viel
Tom Phoenix wrote: On 1/24/07, Kevin Viel <[EMAIL PROTECTED]> wrote: How can take the value of one variable, substitute say its suffix, and assign it to another? I have only figured out how to do it using an intermediate variable: if ( $code eq "" ){ my $base = $out ; $base =~ s/\.out$/

Re: C language and bioinformatics

2007-01-24 Thread Kevin Viel
chen li wrote: Hi all, It is off-topic but I just wonder if any one knows a website or books talking about reading/processing DNA sequences with C language. In short, no. You have not provided much information, i.e. what kind of sequences or the nature of the processing, but ABI.pm is availa

Re: substituting one variable, assign to another

2007-01-24 Thread Tom Phoenix
On 1/24/07, Kevin Viel <[EMAIL PROTECTED]> wrote: How can take the value of one variable, substitute say its suffix, and assign it to another? I have only figured out how to do it using an intermediate variable: if ( $code eq "" ){ my $base = $out ; $base =~ s/\.out$/\.cde/ ; $code =

C language and bioinformatics

2007-01-24 Thread chen li
Hi all, It is off-topic but I just wonder if any one knows a website or books talking about reading/processing DNA sequences with C language. Thanks, Li TV dinner still cooling? Check out "Tonight's Picks"

Re: getopt

2007-01-24 Thread Chad Perrin
On Wed, Jan 24, 2007 at 06:53:53AM -0800, Tom Phoenix wrote: > > Why not simply move things to the trashcan, and skip rm altogether? Yeah . . . I'd probably solve this problem by using the mv command. If you really wanted to, you could just write a shell or Perl script called "trash" that moved

substituting one variable, assign to another

2007-01-24 Thread Kevin Viel
How can take the value of one variable, substitute say its suffix, and assign it to another? I have only figured out how to do it using an intermediate variable: if ( $code eq "" ){ my $base = $out ; $base =~ s/\.out$/\.cde/ ; $code = $base ; } Many thanks, Kevin -- Kevin Viel Depart

Re: How to check diff between files and do action according to the result?

2007-01-24 Thread Tom Phoenix
On 1/24/07, Michael, Lior <[EMAIL PROTECTED]> wrote: I have a cron file replacement job before day starts , Which afterwards I need to check if there's a difference between Cron file . If diff' action give no difference - only send trap If diff' gives non empty output - do manual copy and cron r

How to check diff between files and do action according to the result?

2007-01-24 Thread Michael, Lior
Hi , I have a cron file replacement job before day starts , Which afterwards I need to check if there's a difference between Cron file . If diff' action give no difference - only send trap If diff' gives non empty output - do manual copy and cron restart . Thanks in advance , Best Regards, Lior

Re: getopt

2007-01-24 Thread Tom Phoenix
On 1/23/07, Tony Heal <[EMAIL PROTECTED]> wrote: The end process will be myscript.pl -rf /home/myfolder and that will pass the -rf and /home/myfolder arguments to the rm command after copying everything to the trashcan. Why not simply move things to the trashcan, and skip rm altogether? The

Re: Removing file extension

2007-01-24 Thread Dr.Ruud
Xavier Noria schreef: > On Jan 23, 2007, at 9:55 AM, Dr.Ruud wrote: >> [thread repaired] Saravana Kumar: >>> I am trying to remove the extension from the a list of filenames >>> and manipulate the names further. >>> >>> Tried to doing this: >>> $file=~ s/\..*//; >>> >>> The above works fine. I get

Re: Removing file extension

2007-01-24 Thread Dr.Ruud
Xavier Noria schreef: >$file =~ s/\.\w+$//; That solution is broken, think "file.txt~" and "file.$$$", etc. :) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Removing file extension

2007-01-24 Thread Xavier Noria
On Jan 23, 2007, at 9:55 AM, Dr.Ruud wrote: Use an anchor and a negated character set: s/\.[^.]*$// That solution is broken, think "/foo/bar.baz/woo". Correct regexps and other approaches have already been posted. -- fxn -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm