Re: Perl script to build a forum

2007-07-24 Thread yitzle
On 7/24/07, John Bruin <[EMAIL PROTECTED]> wrote: You will have more luck searching on "CPAN" "perl" "forum". HTH John Being that the 'P' of CPAN stands for Perl, I don't see "perl" as being an important keyword. http://search.cpan.org/ http://search.cpan.org/search?query=forum&mode=all http:/

Re: Perl script to build a forum

2007-07-24 Thread John W. Krahn
Mahurshi Akilla wrote: Does anyone know if there's a perl script available that can run a simple forum? I tried searching on google but any combination of "perl" and "forum" in the search words are giving me results on perl forums :-) but not the forums being run by perl. http://www.slashcode.

RE: Perl script to build a forum

2007-07-24 Thread John Bruin
You will have more luck searching on "CPAN" "perl" "forum". HTH John -Original Message- From: Mahurshi Akilla [mailto:[EMAIL PROTECTED] Sent: Wednesday, 25 July 2007 8:40 a.m. To: beginners@perl.org Subject: Perl script to build a forum Does anyone know if there's a perl script availabl

Re: Parsing large XML file - Revisited

2007-07-24 Thread mirod
On Jul 22, 3:33 am, [EMAIL PROTECTED] (Dr.Ruud) wrote: > "Mike Blezien" schreef: > > > my $article_number = $elt->first_child_text('article_number'); > > my $dist_number= $elt->first_child_text('distributor_number'); > > my $dist_name = $elt->first_child_text('distributor_name'); > >

Re: Perl script to build a forum

2007-07-24 Thread Jeff Pang
--- Mahurshi Akilla <[EMAIL PROTECTED]> wrote: > Does anyone know if there's a perl script available > that can run a > simple forum? I tried searching on google but any > combination of > "perl" and "forum" in the search words are giving me > results on perl > forums :-) but not the forums bein

Serious Problem while appending an Excel file

2007-07-24 Thread thanawala27
Hi guys, I had a problem while writing into an Excel file. What i want to do is: i want to write the contents of 2 variables in one cell of the Excel field. to write the contents of one variable, i use $worksheet->write_string($row, $col, $value1, $format); this works fine. but to write 2 variab

Perl script to build a forum

2007-07-24 Thread Mahurshi Akilla
Does anyone know if there's a perl script available that can run a simple forum? I tried searching on google but any combination of "perl" and "forum" in the search words are giving me results on perl forums :-) but not the forums being run by perl. Thanks -- To unsubscribe, e-mail: [EMAIL PRO

Business:online:payment

2007-07-24 Thread Alma
hi guys, I need to use a online credit card payment module . can anyone help me with to setup a visa o credit card payment online ! So that customers type their details and process the order has anyone has example how to do this ? does web site needs to have some special security ? I wante

Re: Perl script

2007-07-24 Thread Chas Owens
On 7/24/07, Auxence Sima <[EMAIL PROTECTED]> wrote: Hello everyone ! I have this question: can anyone give me an idea of how i can do this. Im trying to figure out how to run Primer3 in batch mode from the Linux command line, and then process the result from a perl script ( which i have to write)

Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 7/24/07, Rob Dixon <[EMAIL PROTECTED]> wrote: > Chas Owens wrote: snip > > There are several ways to round a number, the easiest > > (especially if you don't care how it is rounded) is to use > > sprintf or printf: snip > If you really don't ca

Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Rob Dixon <[EMAIL PROTECTED]> wrote: Chas Owens wrote: snip > There are several ways to round a number, the easiest > (especially if you don't care how it is rounded) is to use > sprintf or printf: snip If you really don't care how a number is rounded, then just replace it by zero

Perl script

2007-07-24 Thread Auxence Sima
Hello everyone ! I have this question: can anyone give me an idea of how i can do this. Im trying to figure out how to run Primer3 in batch mode from the Linux command line, and then process the result from a perl script ( which i have to write). any idea how to generate primers for many sequenc

Re: Rounding and Subs

2007-07-24 Thread Paul Lalli
On Jul 24, 12:18 pm, [EMAIL PROTECTED] (Joseph L. Casale) wrote: > I have two questions, is it correct to execute subs like this: > Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Sure. Just be aware that when calling the "inner" subroutine like that, you're calling it i

Re: Rounding and Subs

2007-07-24 Thread Rob Dixon
Chas Owens wrote: On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned afte

RE: Rounding and Subs

2007-07-24 Thread Joseph L. Casale
Nice! Thanks, jlc -Original Message- From: Chas Owens [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 24, 2007 10:24 AM To: Joseph L. Casale Cc: beginners@perl.org Subject: Re: Rounding and Subs On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: > Hi All, > I have two questions, is it

Re: Rounding and Subs

2007-07-24 Thread Chas Owens
On 7/24/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote: Hi All, I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned after a decimal, it

Rounding and Subs

2007-07-24 Thread Joseph L. Casale
Hi All, I have two questions, is it correct to execute subs like this: Sub_1 (sub_2))? I am trying to pass the return value of sub_2 into sub_1. Also, I have been looking at perldoc etc to limit the # of digits returned after a decimal, it looks difficult? Am I overlooking a simple method? Thank

Re: array assignement

2007-07-24 Thread Paul Lalli
On Jul 23, 1:51 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > John W. Krahn wrote: > > jeevs wrote: > > >> I just wanted to know what does the following line do > >> @{$args{owner}} = qw(hero wierd); > > > You are assigning a list to the anonymous array in $args{owner}. > > >> lets assume $arg

Re: array assignement

2007-07-24 Thread Paul Lalli
On Jul 23, 4:35 am, [EMAIL PROTECTED] (Jeevs) wrote: > I just wanted to know what does the following line do > @{$args{owner}} = qw(hero wierd); > > lets assume $args{owner} = 'sachin'; > Then it would mean @{sachin} = qw(hero wierd); > what would {sachin} stand for does it mean an hash refern

Re: how do I Append to Perl's @INC array using a variable

2007-07-24 Thread Paul Lalli
On Jul 22, 11:59 pm, [EMAIL PROTECTED] (Chris Pax) wrote: > I know that if i use: use lib "/path/to/dir" works. but when I try to > use a variable it does not work. > here is my code: > @dirs = split /\// , $0; > delete $dirs[-1]; > my $runningDir = join "/",@dirs; > $runningDir.="/"; > use lib $ru

Re: reading from a file

2007-07-24 Thread Ken Foskey
On Tue, 2007-07-24 at 12:44 +0300, Octavian Rasnita wrote: > From: "Jeff Pang" <[EMAIL PROTECTED]> > > --- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > > You may try the Unix 'tail' command and pipe the > > result to your Perl program.Like: > > > > tail -f access_log|perl -e > I can do this, but i

Re: reading from a file

2007-07-24 Thread Octavian Rasnita
Thank you. The program works and it prints the lines from the file, but it also waits for more seconds before printing a new group of last added lines. I think it is a problem due to the program that makes the link between the 2 computers. I don't remember its name, but it is not Samba. Thank

AW: reading from a file

2007-07-24 Thread Angerstein
There is a modul on cpan that does what you want. It´s called File::Tail or something like that. -Ursprüngliche Nachricht- Von: Andrew Curry [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 24. Juli 2007 12:12 An: Octavian Rasnita; Jeff Pang; beginners perl Betreff: RE: reading from a file

RE: reading from a file

2007-07-24 Thread Andrew Curry
If you want an over complex solution you could try using use IPC::Open3; use IO::Select; use IO::Handle; i.e. #!/usr/local/bin/perl -w use Data::Dumper; use File::Copy; use IPC::Open3; use IO::Select; use IO::Handle; use strict; use vars qw( $line $select $read $write $error ); ( $select,

Re: reading from a file

2007-07-24 Thread Octavian Rasnita
From: "Jeff Pang" <[EMAIL PROTECTED]> --- Octavian Rasnita <[EMAIL PROTECTED]> wrote: Hi, I am trying to read from a log file which increase continuously almost every second. You may try the Unix 'tail' command and pipe the result to your Perl program.Like: tail -f access_log|perl -e 'whi

Re: reading from a file

2007-07-24 Thread Jeff Pang
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to read from a log file which increase > continuously almost every > second. You may try the Unix 'tail' command and pipe the result to your Perl program.Like: tail -f access_log|perl -e 'while(<>){handle_routine()}' handl

reading from a file

2007-07-24 Thread Octavian Rasnita
Hi, I am trying to read from a log file which increase continuously almost every second. The file is stored on a Windows based computer and my program is working under Linux. If I check the result of the command du -sb file_path I see that its size increases almost every second. But I cann