Re: Win32 Multi-threading examples

2006-09-19 Thread Foo JH
Have you read the articles on threading in Perl? Install ActivePerl and read the perlthrtut article. It's good most of the stuff you need to get started and more. Anyway you'll get better response when you ask a specific question. [EMAIL PROTECTED] wrote: > > I'm taking the dare and dipping my

Re: clarification

2006-09-19 Thread Foo JH
Definately. We ARE talking about Perl right? Regular Expressions can solve your particular problem, and it will likely solve the next few ones as well. Check it out. sandeep s kumar wrote: > > Dear Team, > I need a clarification regarding perl operators. > > ie. Is there any operator calle

Win32 Multi-threading examples

2006-09-19 Thread william . hoopes
Title: Win32 Multi-threading examples I'm taking the dare and dipping my toe in the water asking this. Any help would be appreciated! ://Bill ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveS

Re: clarification

2006-09-19 Thread Paco Zarabozo A.
Hi,   You need to research on regular expressions. There's a lot you can do with it, this is just the smallest part of its power:   if ($var =~ m[House]) {...} # This will match the word House anywhere in $var   if ($var =~ m[house]i) {...} # The same, but case insensitive   if ($var =~ m[^ho

Re: clarification

2006-09-19 Thread Deane . Rothenmaier
Sandeep, Sounds like another regex solution to me if ($x =~ /^a/) {   # store value of $x } Deane Rothenmaier Systems Architect Walgreens Corp. 847-914-5150 "Truth is eternal, knowledge is changeable.  It is disastrous to confuse them." -- Madeleine L'Engle "sandeep s kumar" <[EMAIL

Re: Query in Perl

2006-09-19 Thread Karl . Moens
Vijay wrote: > > Hi All, > > I'm running a Perl statement to fetch some data from a database. > > Lets assume that I want to pull out some data whose description starts > with "ST:" > > I'm passing description as one of my parameter in my Perl code. I want > to assign a value to the descript

clarification

2006-09-19 Thread sandeep s kumar
Dear Team,       I need a clarification regarding perl operators. ie. Is there any operator called LIKE in perl.or its substitute. The scenario is that,ie, can i store  string whose starting letter is say 'a' but rest of its character is unknown. i mean to say whether this is possible. $myvari

Re: my n symbol table ...

2006-09-19 Thread $Bill Luebkert
Brian Raven wrote: > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of ukhas > jean > >>Take a chill pill, bro ... > > > Are you sure that you want to take that attitude with somebody who was > trying to help? He's just saying that the help was kinda cryptic. Saying it's intern

RE: my n symbol table ...

2006-09-19 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 19 September 2006 14:59 To: Active Perl Subject: RE: my n symbol table ... > Chill Eric ... it was just a question ... It seemed like a fairly reasonable answer to me. > If its an Activestate "trademark secret" then

RE: Query in Perl

2006-09-19 Thread Deane . Rothenmaier
Simplest solution...  He's testing for string EQUALITY when he should be using a regex:         $description =~ /^ST:/; That's what he needs, if he's doing the matching in Perl. Deane Rothenmaier Systems Architect Walgreens Corp. 847-914-5150 "Truth is eternal, knowledge is changeable.  It is

RE: how to chk $dbh is active or not ... also do v have a perl helpfilein .chm format???

2006-09-19 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 19 September 2006 14:51 To: Active Perl Subject: how to chk $dbh is active or not ... also do v have a perl helpfilein .chm format??? > 1. i have a $dbh DB-handle ... I wanted to check whether the handle is still activ

RE: my n symbol table ...

2006-09-19 Thread Roode, Eric
Hey, I'm cool. :-)  You're the one with the double and triple question marks. :-)   There's nothing wrong with wanting to delve deeply into the font of Perl wisdom.  This particular path, however, doesn't really lead anywhere.  But keep on asking questions, keep on learning!   Eric J. Roode

RE: my n symbol table ...

2006-09-19 Thread ukhas jean
Chill Eric ... it was just a question ... If its an Activestate "trademark secret" then just say it ... no need to play around with words ... Its was just my knowing urge ... I find Activestate Perl interesting and wanted to go to the depths to know things ...   Take a chill pill, bro ...

how to chk $dbh is active or not ... also do v have a perl helpfile in .chm format???

2006-09-19 Thread ukhas jean
1. i have a $dbh DB-handle ... I wanted to check whether the handle is still active or disconnected ... is there something like $dbh->{active} ... ???   2. The documentation of perl is cumbersome in the .html format for starters (unless u know where to find things ... which takes a lot of time fo

RE: my n symbol table ...

2006-09-19 Thread Roode, Eric
By magic -- evil and dark sorcery.    You don't want to know.  And really, you don't need to.  You cannot reference a lexical variable by its name anyhow.  For all you know, perl completely does away with the variable names at compile time, like a C++ compiler would.   And finally, it's not

RE: my n symbol table ...

2006-09-19 Thread ukhas jean
Then how does Activestate Perl keep track of all the my variables within a block??? I mean there has to be a way ... right??   Rgds, Raj SVK Team Lead, ICICI"Roode, Eric" <[EMAIL PROTECTED]> wrote: Lexical ("my") variables do not exist in the symbol table at all.  Only package ("global")

RE: Query in Perl

2006-09-19 Thread Roode, Eric
It depends on whether you want to do the comparison in Perl or in the database. If in Perl, it depends on whether you want to do it in the main code, in a library, read from a config file, etc. If in the database, it depends on which database product you're using and what interface you're

RE: my n symbol table ...

2006-09-19 Thread Roode, Eric
Lexical ("my") variables do not exist in the symbol table at all.  Only package ("global") variables do.   Eric J. Roode From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jeanSent: Tuesday, September 19, 2006 8:58 AMTo: Active PerlSubject: my n symbol table ... Does t

Query in Perl

2006-09-19 Thread Swaminathan Vijay-A20615
Hi All,   I'm running a Perl statement to fetch some data from a database.   Lets assume that I want to pull out some data whose description starts with "ST:"   I'm passing description as one of my parameter in my Perl code. I want to assign a value to the description such that It pulls ou

my n symbol table ...

2006-09-19 Thread ukhas jean
Does the entry from the symbol table get removed for a "my" variable say my $var once it exits the block its declared in??     All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.___ ActivePerl mailing list ActivePerl@list

Re: \Q \E options ... ???

2006-09-19 Thread $Bill Luebkert
ukhas jean wrote: > whts the use of \Q \E in a regex pattern? I did a google and found the > below meaning (which is some tech mumbo-jumbo ... i cldnt understand). > > \E end case modification > \Q quote non-word characters till \E > I also read somewhere on the net abt some "

Re: Good IO::Socket::INET examples

2006-09-19 Thread $Bill Luebkert
Brian Raven wrote: > > Valid points, but as I said I was just fleshing out an existing example. > I was doing as little work as possible to generate a working, if > simplistic, demo. In general, for a single process, single threaded, > multi client server, then select, non-blocking i/o, sysread an

RE: \Q \E options ... ???

2006-09-19 Thread Brian Raven
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ukhas jean Sent: 19 September 2006 11:26 To: Active Perl Subject: \Q \E options ... ??? > whts the use of \Q \E in a regex pattern? I did a google and found the below meaning (which is some tech > mumbo-jumbo ... i cldnt understand).

\Q \E options ... ???

2006-09-19 Thread ukhas jean
whts the use of \Q \E in a regex pattern? I did a google and found the below meaning (which is some tech mumbo-jumbo ... i cldnt understand).    \E  end case modification \Q  quote non-word characters till \E I also read somewhere on the net abt some "auto-evaluation" that these

RE: Good IO::Socket::INET examples

2006-09-19 Thread Brian Raven
$Bill Luebkert <> wrote: > Brian Raven wrote: > >> Well the example in 'perldoc IO::Select' seems to provide a basic >> skeleton that can be fleshed out. However, as I am feeling generous >> today for some reason, as well as suggesting that you RTFM, I have >> fleshed it out a little. >> >>