RE: Reading from multiple sockets.

2008-11-02 Thread Kammen van, Marco, Springer SBM NL
-Original Message- From: kenTk [mailto:[EMAIL PROTECTED] Sent: Saturday, November 01, 2008 10:41 PM To: beginners@perl.org Subject: Re: Reading from multiple sockets. On Oct 30, 8:33 am, [EMAIL PROTECTED] (Kammen van) wrote: > >>> From: Peter Scott [mailto:[EMAIL PROTECTED] > >>> Subjec

perl reg. exp. (search and replace)

2008-11-02 Thread Irfan.Sayed
Hi all, I have a string which contains spaces. I need to replace those spaces with underscore, so I have written command like this $string="fsdfsdfsdf fsdfsdfsdf"; chomp($string1 = ($string =~ s/\s+$/_/g)); print "$string1\n"; but still $string1 is not printing proper result. Result sho

Re: Difference between passing "?" versus ":1", ":2", ":3" etc in prepare in Perl DBI !

2008-11-02 Thread Amit Saxena
On Mon, Nov 3, 2008 at 11:43 AM, Chas. Owens <[EMAIL PROTECTED]> wrote: > On Mon, Nov 3, 2008 at 00:58, Amit Saxena <[EMAIL PROTECTED]> wrote: > > Hi > > > > What's the difference between passing "?" versus ":1", ":2", ":3" etc in > > prepare in Perl DBI ? > > > > For example, what's the differenc

Re: Difference between passing "?" versus ":1", ":2", ":3" etc in prepare in Perl DBI !

2008-11-02 Thread Chas. Owens
On Mon, Nov 3, 2008 at 00:58, Amit Saxena <[EMAIL PROTECTED]> wrote: > Hi > > What's the difference between passing "?" versus ":1", ":2", ":3" etc in > prepare in Perl DBI ? > > For example, what's the difference between following two scenarios :- > > *Scenario 1* > > $sth = $dbh->prepare("insert

Difference between passing "?" versus ":1", ":2", ":3" etc in prepare in Perl DBI !

2008-11-02 Thread Amit Saxena
Hi What's the difference between passing "?" versus ":1", ":2", ":3" etc in prepare in Perl DBI ? For example, what's the difference between following two scenarios :- *Scenario 1* $sth = $dbh->prepare("insert into tablename values (:1, :2, :3)"); $sth->execute($var1,$var2,$var3); *Scenario 2

Re: trying to parse out the simple xml file from the book with XML::Pa

2008-11-02 Thread Richard Lee
Jeff Pang wrote: I didn't see you assign a value to %forecast but you can loop through it,why? - Original Message - From: Richard Lee To: Perl Beginners Subject: trying to parse out the simple xml file from the book with XML::Parser and I get not well-formed error Date: 2008-11-3 09

Re: trying to parse out the simple xml file from the book with XML::Pa

2008-11-02 Thread Jeff Pang
I didn't see you assign a value to %forecast but you can loop through it,why? - Original Message - From: Richard Lee To: Perl Beginners Subject: trying to parse out the simple xml file from the book with XML::Parser and I get not well-formed error Date: 2008-11-3 09:48:05 use strict;

Re: trying to parse out the simple xml file from the book with XML::Parser and I get not well-formed error

2008-11-02 Thread Richard Lee
Richard Lee wrote: Not sure why I get this.. As xml file is very very simple one(I even tried to put different encoding as well). Below is all necessary information. [EMAIL PROTECTED] script]# uname -a Linux xmen 2.6.25.14-108.fc9.i686 #1 SMP Mon Aug 4 14:08:11 EDT 2008 i686 i686 i386 GNU/Li

trying to parse out the simple xml file from the book with XML::Parser and I get not well-formed error

2008-11-02 Thread Richard Lee
Not sure why I get this.. As xml file is very very simple one(I even tried to put different encoding as well). Below is all necessary information. [EMAIL PROTECTED] script]# uname -a Linux xmen 2.6.25.14-108.fc9.i686 #1 SMP Mon Aug 4 14:08:11 EDT 2008 i686 i686 i386 GNU/Linux [EMAIL PROTECTE

Re: Reading from multiple sockets.

2008-11-02 Thread kenTk
On Oct 30, 8:33 am, [EMAIL PROTECTED] (Kammen van) wrote: > >>> From: Peter Scott [mailto:[EMAIL PROTECTED] > >>> Subject: Re: Reading from multiple sockets. > > >> On Tue, 21 Oct 2008 12:53:53 +0200, Kammen van, Marco, Springer SBM > NL > >> wrote: > >> I'm pretty new to working with sockets in pe