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@listserv.Acti

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.

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 within $timeout seconds: ";

RE: parsing email headers

2010-03-24 Thread Paul Rogers
> Brian Raven wrote: > CPAN is your friend. > > For example, I tried > , > and > on the fourth page I saw DateTime::Format::Mail, which sounds pretty > much like what you are asking for. > > BTW, it seems to be available vie ppm

RE: parsing email headers

2010-03-24 Thread Paul Rogers
Thank you for your reply. I suppose I should have been a bit more specific. I have indeed been using Mail::POP3Client. However, it's the dates that I think could prove tricky. The code down below does indeed narrow down to the date (assuming I work with the "Date:" header). Dates appear to be

parsing email headers

2010-03-24 Thread Paul Rogers
I started on a venture to parse POP3 email headers and I wrongly assumed perl would make that task easy...surely someone in the perl community has a piece of code to make parsing email headers trivial? Apparently not, at least not from what I've seen. My ultimate goal is to delete POP3 emails bas

RE: Win32::ODBC

2009-05-06 Thread Paul Rogers
ehalf Of Schwartz, Peter (JPMC) Sent: Wednesday, May 06, 2009 5:45 PM To: Paul Rogers; perl-win32-users@listserv.ActiveState.com Subject: RE: Win32::ODBC Nope. The results are the same error. Could it have to do with the stored procedure having output variables? Peter W Schwartz Vice-Preside

RE: Win32::ODBC

2009-05-06 Thread Paul Rogers
> -Original Message- > From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl- > > I'd suggest you strongly consider switching to DBI/DBD::ODBC (1.21). > > Win32::ODBC is obfuscated. > > I believe you mean "obsolete" (should not be used because something > better is available

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 Behalf Of Schwartz

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

2009-01-09 Thread Paul Rogers
I have a perl app (on perl 5.8.9) making a call to IO:Socket::SSL (1.13) and it chokes out with the following: ..."ETIMEDOUT" is not exported by the Errno module Can't continue after import errors at C:/Perl/site/lib/IO/Socket/SSL.pm line 20 BEGIN failed--compilation aborted at C:/Perl/site/lib/I

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: perl-

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, A

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

2008-04-09 Thread Paul Rogers
Hi, I'm trying to do some work creating a web service using SOAP::Lite but I'm not getting far. A call through the browser to 'client.pl' shows a blank web page. Going directly to the server.pl shows the error: "HTTP/1.1 411 Length Required". This is running on IIS6/w2k3/AP 5.8 perl. Any idea

GoldMine DLL access

2007-05-20 Thread Paul Rogers
While I've worked plenty in perl I've never had to connect to/use a DLL. GoldMine's API uses a DLL. While of course they have plenty of docs for VB and C++, they have none for perl. Below is their VB declarations file. How can I convert this to perl and then get access to the DLL's core funct

connect to GoldMine DLL?

2005-11-15 Thread Paul Rogers
Has anyone here done any work connecting to GoldMine's API DLL (gm6s32.dll) via perl? While I've been able to connect to GoldMine from their COM DLL (essentially a wrapper around their core DLL), they are dropping support for this method and I'll need to connect directly to the main DLL. pau

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

2005-07-02 Thread Paul Rogers
- Original Message - From: "Charles Maier" <[EMAIL PROTECTED]> My computer is running on XP and I am running perl 6.8.5. I have an upload Perl script running of a webpage which uploads to a private directory whatever my grandkids want to send me. What I would like is to have some sort

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 ;-). hth, Paul ---

Re: perl56 to 58...delay on line prints

2005-04-23 Thread Paul Rogers
- Original Message - From: "Lynn. Rickards" <[EMAIL PROTECTED]> # Turn on autoflush $|++; Aha! Yep...that did it. Thx! Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveSt

perl56 to 58...delay on line prints

2005-04-23 Thread Paul Rogers
I just upgraded to 5.8. One thing I noticed is that it treats line prints differently. For example: while ($x < 10) { for ($y=1;$y<11;$y++) { print "."; sleep 1; } print "\n" $x++; } This prints a line of ".." once every 10 seconds. In 5.6 and prior it would print a "." every second

Re: missing package Mac::BuildTools

2005-04-21 Thread Paul Rogers
I recently had this problem in one module I used...I went in to the module's source and disabled the portion that called the mac module (as it wasn't relevant to a win32 platform anyway). I'd say the same approach will work for you as well. Paul --- __

membership disabled?

2005-04-04 Thread Paul Rogers
I hope I'm not duping any messages here...I just had my list membership disabled "due to excessive bounces". I don't think i posted anythign terribly offensive recently ;-) While it was indeed easy to reenable, I hadn't noticed that my membership was even disabled b/c the email that had come t

Re: [OT] Spam to list

2005-04-02 Thread Paul Rogers
- Original Message - From: "Lyle Kopnicky" <[EMAIL PROTECTED]> I'm all for putting the sender's address in the From header and the list address in the Reply-To header. That's how it works on most every list I'm on, and it works great. Agreed. And I think this is the crux of the probl

c -> perl

2005-03-28 Thread Paul Rogers
I've been tasked with getting some perl scripts to connect to the GoldMine API. I checked some of their API docs and they have C and VB sample code. I figured it'd be easier to translate directly from C, even though I have no real clue about C. Easier, in the sense that I'm dealing with C data

L statement.Re: Win32::ODBC and ExtendedFetch

2005-03-24 Thread Paul Rogers
- Original Message - From: Leigh Sharpe To: Perl-Win32-Users Sent: Wednesday, March 23, 2005 7:52 PM Subject: Win32::ODBC and ExtendedFetch So, Is there any way of forcing Win32::ODBC to do a SQLFetch and not an SQL:ExtendedFetch? I've called it without paramaters, so if the docs are acc

Re: Reading an Access Database

2005-03-22 Thread Paul Rogers
- Original Message - From: Leigh Sharpe Does anybody know of a way to read data from an Access database? All I need is read access, as I want to extract some data and present from a Perl script. Any Ideas? I like using Win32::ODBC although others will undoubtedly espouse the virtues of

current index on sorted array

2005-03-18 Thread Paul Rogers
Is it possible to get the current index of an array when sorted? E.g. foreach (sort(@blah)) { $currindex = ???; print "some index: $currindex\n"; } Thanks, Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsub

Re: simple if?

2005-03-02 Thread Paul Rogers
- Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> if ($x =~ /^(word1|word2|word3|word4)$/) { Aha! Yes...this will do it for sure. Thanks :-) Paul --- ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To un

simple if?

2005-03-02 Thread Paul Rogers
What's the simplest/shortest way to write an IF statement given that I'm looking for the variable to be one of 5 possible choices? E.g., if ($x eq 'a' or $x eq 'b' or $x eq 'c or $x eq 'd' or $x eq 'e') { blah } I guess what I'm asking for is if there is a way to simplify/shorten this structu

Re: to remove a particular element from array

2004-12-24 Thread Paul Rogers
I have some 30 elements in an array , all Machine names of my domain , After generating the Array , If I want to remove one machine -- which I know its machine name , how do I remove one element from the array , with one single statement. As Mark alluded to, you probably want the splice function

Re: MAC Address or CPU ID/Serial#

2004-12-12 Thread Paul Rogers
If you're looking for a unique identifier you'll probably want to use the CPU ID and not the MAC address as network cards are replaced every so often (CPUs rarely). You'll see that it return the first CPU ID found. This avoids problems with multi-cpu machines...i discovered that different flav

Re: Is there a way to execute Windows/DOS command-line executableremotely from a linux box?

2004-12-09 Thread Paul Rogers
- Original Message - From: "Jim MacDiarmid" <[EMAIL PROTECTED]> I'm kind of stuck between a rock and a hard place. I'm working on a website that is being hosted through a third-party hosting company and they are using a Linux environment. The web application I'm working on requires a DOS

Re: numeric vs string scalars...difference?

2004-11-17 Thread Paul Rogers
From: "Thomas, Mark - BLS CTR" <[EMAIL PROTECTED]> To: "'Paul Rogers'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 2:07 PM Subject: RE: numeric vs string scalars...difference? How about 1.02e12? If you wan

Re: numeric vs string scalars...difference?

2004-11-17 Thread Paul Rogers
ssage - From: "Paul Sobey" <[EMAIL PROTECTED]> To: "Paul Rogers" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 4:16 AM Subject: RE: numeric vs string scalars...difference? Hi, Isn't eq a string comparison? Try using

Re: numeric vs string scalars...difference?

2004-11-16 Thread Paul Rogers
ore or less mimics the IsNumeric VB function: if ($mytestvar =~ /^-?(\d+\.?\d*|\.\d+)$/) { print "This is a numeric value."; } Thanks, Paul --- ----- Original Message - From: Andy Bach To: "Paul Rogers" <[EMAIL PROTECTED]> Sent: Tuesday, November 16, 2004 6:03 PM Subject:

numeric vs string scalars...difference?

2004-11-16 Thread Paul Rogers
I need to dynamically do comparisons tests on an array of values...some strings, some numeric. One snag I hit is comparing the occasional numeric values. Using "eq" as the comparison operator fails on comparisons like "45.0" vs "45". Is there a way to determine if a scalar value is indeed numeric

Re: split and ^ character

2004-11-01 Thread Paul Rogers
- Original Message - From: "vega, james" <[EMAIL PROTECTED]> @array = split(/$subrecdelim/, $mystr); @array = split(/\Q$subrecdelim\E/, $mystr); \Q - Quotes nonword characters until \E Thanks James! The other proposed solutions worked (thanks Dave and Tamira!), but I think they had some m

split and ^ character

2004-11-01 Thread Paul Rogers
I'm trying to figure how to get the following code to work. I've tried a few combos, but nothing seems to get it right. I'm guessing it's something simple, but I couldn't nail down what it was. I realize that ^ is a special operator but I don't see a way to escape it, given that it's input fr

Re: calling main application variables from module subroutine with use strict

2004-10-23 Thread Paul Rogers
Ha! I figured it was something easy. Thanks! Paul --- - Original Message - From: "Sisyphus" <[EMAIL PROTECTED]> To: "Paul Rogers" <[EMAIL PROTECTED]> Cc: "Perl-Win32-Users" <[EMAIL PROTECTED]> Sent: Saturday, October 23, 2004 7:06 PM Subj

calling main application variables from module subroutine with use strict

2004-10-23 Thread Paul Rogers
How can I read or updates variables from modules or other imported files (while using 'use strict')? The following example works if I don't include 'use strict' and the subsequent 'my' declaration. E.g.: # main.pl # package main; use strict; use mymod; my $blah = 'test'; tests

RE: IIS 5 metabase

2001-05-23 Thread Paul Rogers [CE]
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Raymond Forbes Sent: Wednesday, May 23, 2001 7:32 PM Has anybody tried writing a perl script to modify the IIS 5 metabase? Has a module been written for this? Why not just use ADSI? IIS includes a number

RE: IIS 5

2001-03-03 Thread Paul Rogers [CE]
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ron > Grabowski > Sent: Saturday, March 03, 2001 8:17 AM > > You could run some 65,000 different sites on the same IP address > as long as > each site listened for requests on a distinct port. Host hea

RE: The Perl Journal is dead :(

2001-01-17 Thread Paul Rogers [CE]
> -Original Message- > From: [EMAIL PROTECTED] > > Now I'm upset...just sent in a check 2 wks ago for a yr of TPJ & the money > for ALL the back issues...fooey!!! Jon Orwant is an honorable person. I highly doubt he will take your money without giving anything in return. I expect he wil

RE: The Perl Journal is dead :(

2001-01-17 Thread Paul Rogers [CE]
> -Original Message- > Newell, Paul > > and was looking at old articles yesterday, so I think "dead" is a bit > premature. perhaps "future uncertain" is more like it. p --- ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.A

RE: File upload(FORM) question

2000-10-30 Thread Paul Rogers [CE]
Personally, I would break it up into two steps. Step one would be for the user to enter the data info. Then step two would be to upload the file. I think this simplifies the process and allows you to only have to worry about one thing at a time. p --- _