AW: How does for work?

2002-12-11 Thread Dietmar Thal
sorry, 2 much ASP foreach $raus (@todelete) { regards, Dietmar btw: reading an introductional tutorial on loop statements in perl or either `perldoc perlsyn` helps ;) |-Ursprüngliche Nachricht- |Von: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]Im Auftrag von |[EMAIL PROTECTED]

RE: AW: How does for work?

2002-12-11 Thread brianr
Dietmar Thal writes: sorry, 2 much ASP foreach $raus (@todelete) { regards, Dietmar btw: reading an introductional tutorial on loop statements in perl or either `perldoc perlsyn` helps ;) In which you will see: The foreach keyword is actually a synonym for

RE: AW: How does for work?

2002-12-11 Thread extern . Lars . Oeschey
The foreach keyword is actually a synonym for the for keyword, so you can use foreach for readability or for for brevity. (Or because the Bourne shell is more familiar to you than csh, so writing for comes more naturally.) so I don't think that is the problem. nope,

Regarding Error for PerlCRT.dll not found.....

2002-12-11 Thread kavita
Hello, I've installed Perl version 5.6.1 with build 633 from Activstate.com. My OS is win2k. I wanted to authenticate users on PDC(NT based).For this reason I downloaded Win32-AdminMisc module from net. But when i m running the script it is giving me the error stating that PerlCRT.dll could

Re: RE: regex question

2002-12-11 Thread Dmitry Kostyuk
I'm glad you have! I sure have as well. Not having seen any more breakage reports in the last couple of days, I assume the code's pretty good now. This means I can start working on the parsing part that has a few flaws as Jason points out. I am probably going to leave all properties content

DBI Prepare and Placeholders (was RE: How does for work?)

2002-12-11 Thread Jeff Urlwin
for $raus (@todelete) { $db2sth = $db2dbh-prepare(DELETE FROM db2bt0xd.bt02th8 WHERE A_LFDNR=$raus); $db2sth-execute; } A little off the direct question of for topic, but... In addition to the other recommendation of initializing the empty array

RE: DBI Prepare and Placeholders (was RE: How does for work?)

2002-12-11 Thread extern . Lars . Oeschey
A little off the direct question of for topic, but... In addition to the other recommendation of initializing the empty array correctly, I'd recommend using placeholders and doing: $db2sth = $db2dbh-prepare(DELETE FROM db2bt0xd.bt02th8 WHERE A_LFDNR=?); for $raus (@todelete) {

RE: AW: How does for work?

2002-12-11 Thread Robert Raisch
You might also say something like: foreach $raus (@todelete) { if( $raus) { ## NEW $db2sth = $db2dbh-prepare( DELETE FROM db2bt0xd.bt02th8 WHERE A_LFDNR=$raus); $db2sth-execute if $db2sth; ##

perl and WMI

2002-12-11 Thread Vassiliy Truskov
Hello everybody. I'm using Dave Roth's example script to get information about processes running on my NT server. from WMI. Is there way to calculate CPU utilization of specified process in %? I think it should be calculated using KernelModeTime and UserModeTime properties, but I don't know how.

RE: How does for work?

2002-12-11 Thread Arms, Mike
Dietmar Thal ([EMAIL PROTECTED]) wrote: sorry, 2 much ASP foreach $raus (@todelete) { regards, Dietmar btw: reading an introductional tutorial on loop statements in perl or either `perldoc perlsyn` helps ;) Here is a timely quote from perlsyn: The foreach keyword is actually a

RE: perl and WMI

2002-12-11 Thread Ishay Inbar
Something important regarding to WMI - it is not ALWAYS installed on Win machines. I had a mistake once to build on it and to find in the end it is not installed... shushu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vassiliy Truskov Sent: Wednesday,

RE: How does for work?

2002-12-11 Thread Moreno, Javier \(GXS, Softtek\)
Title: RE: How does for work? Question... can't you also initialize an array with: my (@todelete); That's usually how I do it, but I was wondering if initializing it with zero elements would be better. Javier Moreno == Softtek/GXS EFS NearShore ...when you have eliminated

Re: How does for work?

2002-12-11 Thread Dietmar Thal
| The foreach keyword is actually a synonym for the for | keyword, so you can use foreach for readability or for | for brevity. (Or because the Bourne shell is more familiar | to you than csh, so writing for comes more naturally.) okay, i didn't knew that, was kind of rash with

RE: How does for work?

2002-12-11 Thread Arms, Mike
Moreno, Javier (GXS, Softtek) ([EMAIL PROTECTED]) wrote: Question... can't you also initialize an array with: my (@todelete); That's usually how I do it, but I was wondering if initializing it with zero elements would be better. You can declare the array that way, and given that Perl let's

RE: How does for work?

2002-12-11 Thread David Gray
Hi Javier, Question... can't you also initialize an array with: my (@todelete); The above statement does not initialize the array, it declares it and leaves it empty and uninitialized. It has the same effect as doing Cmy @todelete = (); would. That's usually how I do it, but I was

Re: perl and WMI

2002-12-11 Thread Vassiliy Truskov
I have WMI installed for sure, because it creates class for Win32_Process correctly and I'm able to get PID and other info from it Ishay Inbar wrote: Something important regarding to WMI - it is not ALWAYS installed on Win machines. I had a mistake once to build on it and to find in the end

PPM3 install error

2002-12-11 Thread Michael Kahle
Hello, I have wrote a script to collect information from computers in my environment. This script relies on 3 perl modules to send the information to a MySQL server. They are: DBD-mysqlPP DBI Net-MySQL I have ActiveState perl installed on the clients that I wish to run scripts on. Version