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]
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
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,
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
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
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
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) {
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; ##
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.
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
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,
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
| 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
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
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
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
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
17 matches
Mail list logo