Comparing 2 text files

2005-11-11 Thread Paul
Hi, What is the best way to compare 2 text files for matching. Let's say both files have just people names Thanks File1 File2 James Joe TinaPatrick Steve James ... __ Yahoo! Ma

PPM error

2006-01-31 Thread Paul
Hi I was trying to load the DBI module by using PPM and I am getting an error C:\>ppm install DBI Installing package 'DBI'... Error installing package 'DBI': Could not locate a PPD file for package DBI I am behind a firewall. So is there is way to get around that Thanks _

Getting .net based web servives using SOAP method

2006-03-01 Thread Paul
Below is how I was able to use a .NET web service using LWP perl module with the GET method. How can I use the same web service using SOAP? I think I need to use SOAP::Lite module but I couldn't make it work. Can anybody help? # Create a user agent object use LWP::UserAgent; $ua = LWP::UserAge

Re: Getting .net based web servives using SOAP method

2006-03-08 Thread Paul
ation is that you turn on debugging, so > that you can see the > SOAP envelope generated. Be sure you've read the > section on > Interoperability -> Microsoft's .NET. > > > Paul wrote: > > Below is how I was able to use a .NET web service > > using LW

Tie and Hash of Array

2006-03-14 Thread Paul
Hi, I have this small bank program and I am using tie and a hash. Basically I am bulding a multi-value values for eah single key. In my LIST_ALL and LIST_ACCOUNT subs, the values of the has don't print. Am I doing something wrong? Also do I need to use an anonymous hash in CREATE_ACCOUNT sub, can

Finding duplicate string in a set of files and sections

2006-04-04 Thread Paul
Hi All, I have a schematic directory which has 16 files ( sch10 , sch11, ...sch25). Files ( sch10 to sch15 ) are in Section1, sch16 to sch20 in Section2 and sch21 to sch25 in Section3. I need to find duplicate nets in - Every page - every section - Between the 3 sections. I have this program b

RE: Finding duplicate string in a set of files and sections

2006-04-05 Thread Paul
Thanks Peter, that will help. I am wondering if the use of anonymous hash and array may make more sense here than doing a bunch of `grep`. Can somebody show me how I would use it here? --- Peter Eisengrein <[EMAIL PROTECTED]> wrote: > > > > I have this program below that work correcly but > the

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

RE: Finding duplicate string in a set of files and sections

2006-04-06 Thread Paul
Thanks Peter, that's basically what I was looking, something more than the single hash I had. Now I have to figure what goes in these two lines > $page++ if /some page match here/; > $section++ if /some section match here/; But with some effort I should figure it out. --- Peter Eisengr

Finding duplicate in file using hash ( name or anonymous )

2006-05-09 Thread Paul
Hi All, I am trying to find duplicate names in a text file and report them by Section number and page number but my output is not totally correct. Can somebody help me iut to find out what's wrong in my script. This is the output I get DUPLICATE IN BETWEEN SECTION SLOTA : in Section/Pages

Re: Finding duplicate in file using hash ( name or anonymous )

2006-05-09 Thread Paul
Never mind, I've figure it out. Thanks --- Paul <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to find duplicate names in a text file > and > report them by Section number and page number > but my output is not totally correct. Can somebody > help me iu

variable issue when creating muliple Label/Entry on the fly in Tk

2006-05-25 Thread Paul
Hi All, My sample program work ok except that I don't know how to make multiple unique variable name in the entry box of the &BUILD_NEW subroutine. Basically how the program work is the user enter an integer x for the number of section and based that, x number of Label adn Entry box get created. C

How to Use XML::Parser to Reduce an XML file to what is wanted

2012-10-31 Thread Paul Rousseau
=> '', 'Active' => '-1' }, 0, '11-30.PLC.Global.ACKNOWLEDGE.Latched' ], 'Item', [ { 'ReqDataType' => '0', 'AccessPath' => '', 'Active' => '-1' }, 0, '11-30.PLC.Global.EY_01_1001.Latched' ] ] ] ] ] ]; I checked the Net but did not find an "extraction" example that maintains the .xml integrity. I am thinking I would need logic to do the following. 1. Open the .xml file. 2. Begin parsing. 3. If the object is not 'Item', keep it. (This will keep objects such as 'Session', 'Server', 'Group') 4. If the object is 'Item', and it contains the text, '.Latched', keep it. 5. Otherwise, ignore 'Item' 6. Open the output file. 7. Write out all the kept items. 8. Close both files. Any help would be greatly appreciated. Paul Rousseau ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to Use XML::Parser to Reduce an XML file to what is wanted

2012-11-05 Thread Paul Rousseau
al.ES23_0001.BypassTimer.DN11-30.PLC.Global.ES23_0001.BypassTimer.EN11-30.PLC.Global.ES23_0001.BypassTimer.PRE11-30.PLC.Global.ES23_0001.BypassTimer.TT11-30.PLC.Global.ES23_0001.BypassTimer.CTL_x.CTL_0111-30.PLC.Global.ES23_0001.BypassTimer.CTL_x.CTL_0211-30.PLC.Global.ES23_0001.BypassTimer.CTL_x.CTL_03 Her

Unicode, Null Code or Something Else

2013-01-24 Thread Paul Rousseau
ese null codes go away? (In other words, I want to convert $string to "NormandvilleAdmin") Thank you Paul Rousseau ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Unicode, Null Code or Something Else

2013-01-24 Thread Paul Rousseau
Thank you Glenn. open(my $file,"<:encoding(UTF-16)", $filename) This works. Paul Date: Thu, 24 Jan 2013 09:39:49 -0800 From: v+p...@g.nevcal.com To: perl-win32-users@listserv.ActiveState.com Subject: Re: Unicode, Null Code or Something Else On 1/24/2013 9:36 AM,

constant contact / net::oauth2

2013-09-17 Thread Paul Rogers
Has anyone managed to get the Email::ConstantContact module working with Net::OAuth2? It seems that oauth2 support, now required for CC, was never added to the module. Cheers, Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users

FW: 64 Bit ActivePerl

2005-06-15 Thread Paul Sobey
Anybody from ActiveState listening? Is there a better place to send this? Cheers, Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Sobey Sent: 10 June 2005 17:11 To: Perl-Win32-Users@listserv.ActiveState.com Subject: 64 Bit ActivePerl Hi All

RE: 64 Bit ActivePerl

2005-06-16 Thread Paul Sobey
> You may get better results from perl-win32-porters though or > maybe direct to one of the AS guys working on Perl ports. Thanks Bill - I'll send a post, and report back anything of interest with a great big WIN64: You may not want to read this subject li

Re: Test if a string is a number?

2005-06-29 Thread Paul Rogers
I have a function which does numeric testing. It's worked pretty well. As you can see, I also made a notation to myself when I was constructing it that I may wish to change it to simply using Scalar::Util. I can't remember why I opted not to use it (maybe I was just lazy ;-).

Re: Notify me when upload complete.????

2005-07-02 Thread Paul Rogers
the fact that you are not checking your email all the time. Perhaps it should be sent to your mobile phone's email addressthereby letting you know "instantly", wherever you're located. Paul --- ___ Perl-Win32-Users mailing

RE: error locating win32:OLE Trying write code that work for bothUNIX and MSWin32 Mail

2005-07-06 Thread Paul Sobey
INC contains: > 'use' is a compile time directive, so the script will try and compile/import the Win32::OLE module regardless of your if statement. Your first example, using require, is the right way to go, but you may want to require Win32::OLE; import

RE: fork() and ithreads in AS Perl 5.8.6

2005-07-13 Thread Paul Sobey
es of code then feed download tasks to them via a Thread::Queue or somesuch. Paul * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the informatio

Win32::API and CreateProcess - strange intermittant problems

2005-07-14 Thread Paul Sobey
odule kernel32.dll, version 5.2.3790.0, fault address 0x0001202e. All services running on Windows 2003 Standard edition. Grateful for any advice :) Cheers, Paul __BEGIN CODE__ use Win32::API; use constant { # Process creation STARTF_USESTDHANDLES => 0x100, CREA

RE: Win32::API and CreateProcess - strange intermittant problems

2005-07-14 Thread Paul Sobey
f it goes down, so I had to do a wmi 'get processes which are child of cmd.exe x' type thing. I could revert to this if needed, but obviously the pipe is prettier, if apparently the most unstable thing in the entire world :) Paul ***

RE: regarding Win32::Service.

2005-07-21 Thread Paul Sobey
d we'll help you put something together. Paul p.s. it's really not good running a service as domain admin like that - if you can I recommend creating a separate user account and running your services using those credentials instead! ***

RE: Creating a Windows service

2005-07-21 Thread Paul Sobey
emon/. I've used this to create a fair few services now, and it works very well. Paul * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the in

RE: activeperl + mysql + threads = crash

2005-07-25 Thread Paul Sobey
ates on this. http://aspn.activestate.com/ASPN/Mail/Message/perl-DBI-Dev/2241467 http://search.cpan.org/~jwied/Msql-Mysql-modules-1.2219/mysql/lib/DBD/my sql.pm#MULTITHREADING Paul * Gloucester Research Limited believes the information

RE: Error 1053 starting Win32::Daemon service

2005-08-10 Thread Paul Sobey
32::Daemon it can under certain circumstances install with relative paths (ie perl service.pl rather than c:\perl\bin\perl.exe d:\scripts\service.pl). Paul * Gloucester Research Limited believes the information provided herein is rel

RE: :SMTP errors?

2005-08-11 Thread Paul Sobey
> I'm successfully using Net::SMTP to send email, but I need to > look at the to() > error messages to determine if the problem was just a bad > address or if the > server found a more sinister problem. How do I pick up the > actual message > returned by the server? Assuming my $smtp = new Net:

RE: Active Directory management

2005-09-09 Thread Paul Sobey
of this in > there. You could try this - uses ADSI to connect to a group of servers and change the local admin pass. Paul === use Win32::OLE; my @servers = (qw( server1.domain.net server2.domain.net )); my $password = "SetPasswordHere"; foreach my $server (@se

ADO Searching for AD objectGUID

2005-10-11 Thread Paul Sobey
t sure what it might be. Any ideas?   Paul   * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipie

RE: Mac address of remote host

2005-10-18 Thread Paul Sobey
ur arp cache - arp -a on my Windows box. If you're going across subnets, you have various options. Wmi, nbtstat -a are the two that immediately spring to mind. Paul * Gloucester Research Limited believes the information prov

RE: Mac address of remote host

2005-10-19 Thread Paul Sobey
ssing something here? Paul * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipients with no warranty as to t

RE: Mac address of remote host

2005-10-19 Thread Paul Sobey
Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status - MAC Address = 00-11-43-33-25-62 Methods 2 and 3 are just fine cross-subnet (meth

RE: Mac address of remote host

2005-10-19 Thread Paul Sobey
at takes the piss a little. Or you could poll the remote router for its arp cache with snmp after you've done your ping. Or you could install a daemon on the remote subnet and get that to do the work of polling its arp cache and returning the results. Or you could install snmp o

connect to GoldMine DLL?

2005-11-15 Thread Paul Rogers
to the main DLL. paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Finding the user's "home" directory?

2005-12-07 Thread Paul Hoffman
Greetings. I'm assuming I'm just missing something obvious here, but how do I find the current user's "home" directory (C:\Documents and Settings\)? I didn't see it in the Win32 module, but I could have missed it. --Paul Hoffman __

Re: Finding the user's "home" directory?

2005-12-08 Thread Paul Hoffman
Thanks, all. $ENV{'HOMEPATH'} worked fine. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Finding the user's "home" directory?

2005-12-08 Thread Paul Hoffman
> Really? I would have thought you would need to use: > > "$ENV{HOMEDRIVE}$ENV{HOMEPATH}" Good call, particularly because Glenn is taller than I am when he stands on the soapbox... --Paul Hoffman ___ Perl-Win32-Users mailing li

RE: MS SMTP and MS FTP server information

2005-12-28 Thread Paul Sobey
proprietry binary format, but there are still command line/COM interfaces to management I think. I've never used any of this stuff but it looks promising. Cheers, Paul * Gloucester Research Limited believes the information prov

Win32::Daemon and dependencies

2006-01-26 Thread Paul Sobey
else come across this bizarre bug in Win32::Daemon? I found one reference to it here: http://www.mail-archive.com/perl-win32-users@listserv.activestate.com/ms g08350.html Not sure whether Dave Roth is currently maintaining the module or not but I'll send a copy of this mail to him. I guess

Debugging Perl Service?

2006-02-10 Thread Paul Sobey
some stats once a day so I can get an idea of which hash/array/whatever is causing the problem. Paul * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure acc

RE: Debugging Perl Service?

2006-02-13 Thread Paul Sobey
g how much memory each of my variables is using. Devel::Size on CPAN looks promising - I'll try that. Paul > -Original Message- > From: Foo Ji-Haw [mailto:[EMAIL PROTECTED] > Sent: 13 February 2006 02:53 > To: Paul Sobey > Cc: perl-win32-users@listserv.ActiveState.com

How to best replace one string with another in a text file

2006-02-28 Thread Paul Rousseau
Hello, I want to open a text file, look for a specific string, replace it with a new string, and write the line out to another file. For lines not containing the specific string, I want to write out as is. I was wondering if it is possible to do it with a map or splice or grep command rathe

RE: outlook address book

2006-03-07 Thread Paul Sobey
> Greets, does anyone know of a module or WMI/OLE method that will let u > interact with the Outlook global address list? Or an offline > copy thereof? > I want to be able to search fields for usernames and bring > back all the info. The various MAPI interfaces (CDO and the like) will do the j

RE: Running a script in the system account

2006-03-20 Thread Paul Sobey
considered psexec (http://www.sysinternals.com) - that will fire off a single command as the system account for you on Win2K. Better to fix the Mailtraq COM implementation, but this would be a good alternative. Cheers, Paul * Glouceste

Win32::OLE - Mem Leak?

2006-03-20 Thread Paul Sobey
is this a genuine bug? Cheers, Paul * Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipients with no warr

RE: Windows Directory

2006-03-21 Thread Paul Sobey
> How do I get a directory listing on a Windows machine? I think it is > something like: > > $direc = system `dir`; > print "$direc"; > <>; > > Thanks. my $dir = "C:\\test"; opendir DIR, $dir; my @files = grep { ! /^\.+$/ } readdir DIR; closedir DIR; you might add a map { "$dir\\$_" } before t

How to clear up blanks when converting an array to a hash

2006-03-21 Thread Paul Rousseau
Hello, I run an executable that returns a small array of data. my @ans = qx {"myexec"}; @ans contains the values, Value= 1 Status = 13 Options = 0x0a Quality = 3 I use a map function to convert this array into a hash. my %results = map {(split /=/)} @ans; My questions are: 1. H

RE: Get Service Description

2006-03-23 Thread Paul Sobey
e $objItem->{DisplayName} - long name $objItem->{Description} - description See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/ wmi/win32_service.asp Does that help at all? Cheers, Paul * Gloucester Res

FW: Win32::OLE - Mem Leak?

2006-03-24 Thread Paul Sobey
Anybody got any ideas? Anybody from AS? Not sure what I can try next - short of scheduling a restart of the service every week. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Sobey Sent: 20 March 2006 11:50 To: perl-win32-users

Regex Needed

2006-03-24 Thread Paul Rousseau
Hello, I am looking for help on a regex that examines strings such as "xxxN yyy sssNNN" "xxxN yyyNyyy sss" "xxxN yyyNyyy ssN" and returns only the sss part? N is always a numeral, and s is always alphabetic. Here is what I have so far as an example. I believe there is an eloqu

RE: How to read/write text files with "unicode" encoding?

2006-03-28 Thread Paul Sobey
es a while back when having to create files which were 'unicode', and this set of options seemed to do the job. I gave up on your example two! Modified script attached - hope it helps. Cheers, Paul * Gloucester Research Limited bel

RE: accurate timing in windows

2006-03-29 Thread Paul Sobey
on Windows won't go below 1ms resolution - the following would seem to back that up: http://www.sysinternals.com/Information/HighResolutionTimers.html Does anybody know if it is possible to go lower than this? Paul * Glouces

RE: Win32::OLE - Mem Leak? (FIXED)

2006-03-30 Thread Paul Sobey
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Sobey > Sent: 20 March 2006 11:50 > To: perl-win32-users@listserv.ActiveState.com > Subject: Win32::OLE - Mem Leak? > > I'm trying to debug a slow memory lea

RE: Win32::OLE - Mem Leak? (FIXED)

2006-03-30 Thread Paul Sobey
> -Original Message- > From: Joe Discenza [mailto:[EMAIL PROTECTED] > Sent: 30 March 2006 21:11 > To: Paul Sobey; perl-win32-users@listserv.ActiveState.com > Subject: RE: Win32::OLE - Mem Leak? (FIXED) > > Paul Sobey wrote, on Thursday, March 30, 2006 1:10 PM &

WMI Querying - Slightly OT

2006-04-07 Thread Paul Sobey
_Sys100NS -> 1000 -> Name -> HP Network Team _1 -> The CurrentBandwidth property is a negative value, almost as if it is a counter that has wrapped. Does anybody know how I can process this to get the true value? Cheers, Paul

RE: Replace Leading Spaces

2006-04-07 Thread Paul Sobey
> My $string = ' 259.00 '; > > Note that I don't want to change the trailing space character. The > resulting string would look like: > > '0259.00 ' > > The total length of the string would remain the same after the replace > operation. > > I'm just having a total brain-fade on this on

RE: Guidance on how to get TCP bytes / packets sent & received

2006-05-07 Thread Paul Sobey
lt.asp?url=/library/en-us/wmisdk/ wmi/performance_counter_classes.asp, and in particular http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/ wmi/win32_perfformatteddata_tcpip_networkinterface.asp Hope that gives you some pointers - there are sample scripts on the site which should be easily

Checking a local password

2006-05-16 Thread Paul Sobey
I have a requirement to test the local admin password in my startup script to make sure it isn't one of several defaults people have been setting. What's the best way to do this? Ideally I'd like a direct way to call LogonUser() - has anyone done this via Win32::API

RE: Checking a local password

2006-05-17 Thread Paul Sobey
to make LogonUser work with Win32::API. The following code runs, but reports 'The parameter is incorrect' with a result code of 0. Is there anything obvious I am doing wrong? Paul use Win32::API; use constant ( LOGON32_LOGON_BATCH => 4, LOGON32_LOGON_NETWORK=&g

Username and password lookup

2006-05-31 Thread Paul Rousseau
Hello, I am looking for a way to take a userid and password, and verify them against the OS. I have looked at Win32::NetAdmin's UserGetAttributes function; however, when I read a valid userid's information, I get nothing back for the password field. The idea was to read the password, com

WMI Asynchronous Calls

2006-06-21 Thread Paul Sobey
s providers to group a whole load of stop() requests, followed by a whole load of start requests, but I confess I have no idea where to start. Does anybody have any sample code or pointers to offer? Cheers, Paul ___ Perl-Win32-Users mailing list Perl-

MMap

2006-09-11 Thread Strain, Paul
ogram formerly ran on apache, which I think is where the module normally comes from.   Paul Strain, CNE, MCSESenior Associate, Systems Management ArchitectClifton Gunderson LLP2 East Main, Suite 120Danville, IL  61832217.442.1643 / FAX ..Mobile: 217.799.3890[EMAIL PROTECTED]www.cliftoncpa.com

GoldMine DLL access

2007-05-20 Thread Paul Rogers
the DLL's core functions & methods? Cheers, Paul --- VB declarations file... Attribute VB_Name = "GM6S32Main" ' *** ' * ' * Module Name : GMDeclare ' * Purpose : VB declarations for gm6s32.dll funct

How to handle a find failure when examining an excel file

2007-11-27 Thread Paul Rousseau
Hello, I want my code to be able to handle the following find statement when it fails to find the text in the 'What' argument. $row = $Sheet->UsedRange->Find ({What => "ParentItemName", SearchDirection => xlNext, SearchOrder => xlByRows}) -> {Row}; If the text, ParentItemName, does not

Soap::Lite server error...Length Required?

2008-04-09 Thread Paul Rogers
on IIS6/w2k3/AP 5.8 perl. Any ideas on this error? Google didn't reveal all that much. Cheers, Paul --- # client.pl ### use CGI; use SOAP::Lite; $wp = new CGI; print $wp->header; print SOAP::Lite -> uri('Demo'

RE: module to access a remote machine

2008-04-10 Thread Paul Rogers
Perhaps you could just use windows file sharing. Or work in reverse.have the remote PC send the file to your local PC (via FTP or whatever) as opposed to you going out and getting it from that PC. Paul --- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of raj esh Sent: Thursday

RE: AdminMisc and hard drive recognition

2008-12-02 Thread Paul Rogers
http://www.roth.net/perl/adminmisc See the functions: GetDrive* But I don't think cylinder/head/sector info will be available from within the OS. J Paul --- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 10:52 AM To:

IO::Socket::SSL 1.13 or Errno bug?

2009-01-09 Thread Paul Rogers
:/Perl/site/lib/IO/Socket/SSL.pm line 20. Compilation failed in require at (eval 9) line 1. BEGIN failed--compilation aborted at (eval 9) line 1. I didn't see ETIMEDOUT as an export in Errno.pm Any ideas? Cheers, Paul --- ___ Perl-Win32-Use

RE: Win32::ODBC

2009-05-06 Thread Paul Rogers
I'd suggest you strongly consider switching to DBI/DBD::ODBC (1.21). Win32::ODBC is obfuscated. Try with DBI/DBD::ODBC and see if results change. Paul --- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Beha

RE: Win32::ODBC

2009-05-06 Thread Paul Rogers
p, Win32::ODBC will. DSNs can also be created by directly writing to the registry as well (using any number of registry editing modules). But I digress. Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Win32::ODBC

2009-05-06 Thread Paul Rogers
Have you attempted to execute this SQL code in DB2 prior? In other words skip the perl middleman altogether and see if it's something with your SQL statement. Paul --- From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On B

WMI Win32_PhysicalMemory on Virtual PC

2009-08-13 Thread BRZEZINSKI, PAUL
I written a WMI query that attempts to obtain physical memory capacity via WMI call. Works as expected on live PCs but returns strange results on a guest OS hosted by Virtual PC 2007. Anyone else run into this? Ideas how to solve? Sample code: -- use strict; use warnings; use Win32::OLE qw(in

RE: WMI Win32_PhysicalMemory on Virtual PC

2009-08-14 Thread BRZEZINSKI, PAUL
After more research I found that Win32_OperatingSystem has a property called TotalVisibleMemorySize, which addresses my original question. Paul -- Paul J. Brzezinski Integration Engineering - GM EDS, an HP company     Phone:+1-248-365-9615(8-355) P paul.brzezin...@hp.com -Original Message

RE: Need help with printf/sprintf

2009-08-29 Thread BRZEZINSKI, PAUL
See the doco for sprintf for the details: http://perldoc.perl.org/functions/sprintf.html You'll want to do: printf "%-*s %10.2f\n", $W, $item, $price; From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Daniel Burga

RE: Resolve hostname by specified nameserver

2009-10-21 Thread BRZEZINSKI, PAUL
Take a look at http://rallenhome.com/books/dnsonw2k3/toc.html I found a VBScript that did something very close to what you're trying to do. The differences are/could be: - queries needed to be directed to a domain controller - queries were only successful in the same domain [i.e., asking about

HTML Parsing Question

2010-02-04 Thread Paul Rousseau
print "parent content is " . ${$parent}{_content}; # prints "parent content is ARRAY(0x1afa7b0)" foreach $key (@{${$parent}{_content}}) { #print "content item is

parsing email headers

2010-03-24 Thread Paul Rogers
mails based on age (e.g.: Delete email message if older than X days). Anyone have any pointers on this task? Cheers! Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/ma

RE: parsing email headers

2010-03-24 Thread Paul Rogers
# I can imagine writing code to handle parsing the Received header under this scenario, but it seems like the module should be able to do this for me. Cheers, Paul $pop = new Mail::POP3Client( USER => "$Settings{usern

RE: parsing email headers

2010-03-24 Thread Paul Rogers
t; BTW, it seems to be available vie ppm as well. Excellent...this or Tobias' suggestion (Date::Parse) should be exactly what I need. Cheers! Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

alarm

2010-04-02 Thread Paul Rogers
Trying to run the code below in Win32, any reason why it may not be working? Behaviour: It just sits there and doesn't time out as expected. Cheers, Paul --- my $timeout = 10; eval { local $SIG{ALRM} = sub { die "alarm\n" }; alarm $timeout; print "Hit ENTER key wit

RE: alarm

2010-04-03 Thread Paul Rogers
> -Original Message- > From: Bill Birthisel [mailto:bbirthi...@aol.com] > Sent: Saturday, April 03, 2010 9:42 AM > To: Paul Rogers > Cc: perl-win32-users@listserv.ActiveState.com > Subject: Re: alarm > > One big reason why it doesn't work: THANKS $MICROSOFT.

How to Extract a Date from a File

2011-11-02 Thread Paul Rousseau
quot; straight into $start_date so that $start_date = "20111029" Thank you Paul Rousseau 403 776 4293 ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to Extract a Date from a File

2011-11-03 Thread Paul Rousseau
. For now, I will leverage the HTML library APIs. Sincerely, Paul > From: bra...@nyx.com > To: perl-win32-users@listserv.activestate.com > Date: Thu, 3 Nov 2011 10:37:03 + > Subject: RE: How to Extract a Date from a File > > From: perl-win32-users-boun...@l

How to split up a string with carriage returns into an array

2011-11-04 Thread Paul Rousseau
Hello Perl Community, I have string variable, $msg, assigned the following text. OCT 31 - Attended CSP weekly meeting. Engaged in third party SCADA host (ZedI) problem in Fairview district NOV 1 - Preparation and attendance of Normandville Phase 1 meetings. NOV 2 - Maintained project list

RE: How to split up a string with carriage returns into an array

2011-11-04 Thread Paul Rousseau
o use some sort of look-ahead assertion regexp. Does anyone have a suggestion? Should I simply just set up a for loop and hack away on getting $msg into @ans? Paul From: paulrousseau...@hotmail.com To: perl-win32-users@listserv.activestate.com Subject: How to split up a string with carr

How to push a hash on to a hash of array entries

2011-11-07 Thread Paul Rousseau
). The part, ${$project{$projectno}[2]}, I was thinking refers to the hash address; then the part, {$day}, is the key. Then again, maybe I am going at it all wrong with the push statement. Any help would be appreciated. Thank you Paul ___

RE: How to push a hash on to a hash of array entries

2011-11-08 Thread Paul Rousseau
=> [ '4.00', '' ] } ] }; When I execute the line, print Dumper \%{$project{$projectno}[2]}; I stil

Re: Printing work days of the week

2001-03-02 Thread Paul Popour
> - Original Message - > From: "Conrad, Ben" <[EMAIL PROTECTED]> > To: "Perl-Win32-Users (E-mail)" <[EMAIL PROTECTED]> > Sent: Thursday, March 01, 2001 2:15 PM > Subject: Printing work days of the week > > > Hello, > > > > I've been trying to get a script together that will print only the

Re: how to see if a file is in use

2001-03-02 Thread Paul Popour
- Original Message - From: "Debbie Thomson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 2:39 PM Subject: how to see if a file is in use > Hi, all- > > I want to write a script to backup a file on a remote NT 4.0 server with > an NTFS file system. I don't

RE: Executing a script within another script

2001-03-05 Thread Newell, Paul
Sure, but "system" is going to do a lot worse (at least on NT) than that. It's going to create a whole new process and invoke a whole new perl. If you want to avoid re-compiling a script you should consider using a module. > From: Dirk Bremer [mailto:[EMAIL PROTECTED]] > > Brian, > > The camel

RE: Executing a script within another script

2001-03-05 Thread Newell, Paul
You're probably right. I think "system" is what you want, just not for performance reasons. I don't think "do" was intended for the sort of thing you want to. > From: Dirk Bremer [mailto:[EMAIL PROTECTED]] > > Paul, > > The script that gets called

Re: strict frustration

2001-03-06 Thread Paul Popour
- Original Message - From: "Peter Eisengrein" <[EMAIL PROTECTED]> To: "'Ron Grabowski'" <[EMAIL PROTECTED]>; "Perl-Win32-Users Mailing List (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, March 06, 2001 10:06 AM Subject: RE: strict frustration > Sorry, I didn't give any code because it is a

Status of Image::Magick

2001-03-08 Thread Paul Tomlin
] soap://www.activestate.com/~whatever [ ditto ] Cheers Paul ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: Using Win32::OLE to find the end of a row in Excel spreadsheet - RESOLVED

2001-03-23 Thread Rousseau, Paul
Thanks goes out to Michael L. Semon for providing me with the solution. Replace $endcolnum = ord("L"); #hard-coded column. with $endcolnum = $startcolnum + $Sheet->Cells->SpecialCells(xlCellTypeLastCell)->{'Column'}; -Original Message---

Re: How to start Word and keep it running?

2001-04-03 Thread Paul . Bettendorf
I am running (walking?): Windows 95b (4.00.950 B) Internet Explorer (aka OS extension) 5.01 sp1 (5.00.3105.0106) ActiveState Perl binary 522 (Perl 5.005_03) with ActiveState PPM-supplied extensions Microsoft Word 97 SR-2 I am editing in TextPad (www.textpad.com) 4.4.1 and have configured an op

Re: How to determine with a shared Network Drive is connected

2001-04-11 Thread Paul Popour
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 3:01 PM Subject: How to determine with a shared Network Drive is connected > I have a perl script that moves files from one server to another server. > The curr

  1   2   3   >