Thanx for the suggestion, unfortunately, I'm still getting the error.
Trigger.pl didn't return any errors.
Chris
"Steven
Not sure why, but I got that same error with your code, until I ran
Umberto's "trigger.pl" example from the download file on sourceforge.
And now your code works.
:( :)
Odd, but... Hey, it works!
Steven
Modified it slightly to see where things were failing... The two errors
were in SetAp
I'm having a problem with getting win32:: taskscheduler to work - using
version 2.03a/perl 5.8.0 build 806.
Running the script below gives me
Win32::TaskScheduler: fatal error: null pointer, call NEW()
use Win32::TaskScheduler;
use strict;
my $scheduler = Win32::TaskScheduler->New();
my $resu
How about this (direct from "The Perl Cookbook"[1]) ??
warn "has nondigits"if /\D/;
warn "not a natural number" unless /^\d+$/; # rejects -3
warn "not an integer" unless /^-?\d+$/; # rejects +3
warn "not an integer" unless /^[+-]?\d+$/;
warn "not a
Title: RE: Regular expression to test for numeric values
use Scalar::Util;
if (Scalar::Util::looks_like_number $num)
{
print "Yes, $num is a number\n";
}
else
{
print "no.\n";
}
... found it with perldoc -q number, which also showed a number of regex's that do the same kin
Gerber, Christopher J wrote, on Thursday, April 01, 2004 2:12 PM
: -Original Message-
: My guess is that I need a regex that will match on any character that is:
: not 0-9
: or
: more than one "."
: or
: more than one "-"
: or if "-" is not the fir
-Original Message-
My guess is that I need a regex that will match on any character that is:
not 0-9
or
more than one "."
or
more than one "-"
or if "-" is not the first character of the string
Any ideas? Is it possible to do without usi
$txtype = 0 unless $txtype =~ /^-{0,1}\d+(?:\.\d+){0,1}$/;
Peter Guzis
Web Administrator, Sr.
ENCAD, Inc.
- A Kodak Company
email: [EMAIL PROTECTED]
www.encad.com
-Original Message-
From: Motter, Jeffrey D [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 10:40 AM
To: Perl-Win32-U
I've read the FAQ's on this, but they don't seem to answer the question.
I have a variable that could contain any value( alpha, alpha-numeric, or
numeric). If the value is NOT numeric, I need to change the variables' value
to "0"( as in zero ).
Examples:
$txtype="2.314"; # is numeric, so keep t
Stacy Doss wrote:
$a = "this is a (test)";
$a =~ s/\W+/_/g;
HTH
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 11:28 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: regular _expression_ qu
$a =~ s/ /_/g;
$a =~ s/[()]//g;
or
$a =~ tr/ ()/_/d;
Peter Guzis
Web Administrator, Sr.
ENCAD, Inc.
- A Kodak Company
email: [EMAIL PROTECTED]
www.encad.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 9:28 AM
To: [EMAIL PROTECTED
$a = "this is a (test)";
$a =~ s/\W+/_/g;
HTH
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 11:28 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: regular expression question
Thanks for the replyin
Thanks for the replying.
I have another question, if I have a string like
$a = "this is a (test)";
How can I change it to
$a = "this_is_a_test";
How can I remove ()?
Thanks
Lixin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
$Bill Luebkert
Sent:
Is anyone out there successfully using the Win32::GUI::AxWindow module?
Everything works fine until I need to get rid of the activex object and
reclaim it's memory resources ( I realize the best I can hope for here is
to reclaim them for perl, not the OS in general). The Release() method or
u
> Nothing. Since Text::ParseWords is one of the core Perl modules, it is
> not listed by PPM. Only core modules that have been upgraded
> will appear in a query listing.
Ah!
> I've never quite understood the rationale behind that.
To confuse the slightly less new newbie? Must keep 'em on t
For files you just need the
@stuff=stat($filename);
see perldoc -f stat
I don't know if it works for directories (suspect not).
Kind regards,
Mark Anderson
SMS Deployment
The Royal Bank of Scotland
113 Dundas Street, Edinburgh, EH3 5DE
http://www.manufacturing.rbs.co.uk/GTrswi/
> ---
Hi all,
I would like to the perl module which gives folder/file size for a given
folder/file.
Thanks in advance,
Mallika.
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
17 matches
Mail list logo