Re: C#, Perl and COM objects (PerlNET / Win32::OLE)

2015-10-28 Thread Andy Grundman
://amzn.com/0130652067 If you could put together a simple test case that demonstrates the problem you're having, I would be happy to take a look at it. --- Andy Grundman Lead Perl Language Developer, ActiveState an...@activestate.com On Thu, Oct 22, 2015 at 5:51 PM, Miriam Heinz wrote: &g

RegExp matching over multiple lines

2008-10-21 Thread Andy Postulka
Hi to everyone, First off I hope I'm posting this to the right Mailing list. If not, please forgive me in advance. I just started using ActivePerl I'm having difficulty using RegExp to match/extract across several lines in an HTML file. I want to match and extract everything between a pair of

Re: Image Dimensions

2007-01-20 Thread Andy Bach
Isn't the standard-ish way to do use lib '/some/path' or by setting the env var PERL5LIB='/some/path' before execution? You can manipulate/download cpan modules to install in a local (e.g. /home/andy/perl5lib) tree - even a version of the whole perl shebang, er, kit

RE: File Upload

2006-12-04 Thread Webb, Andy
Oh, that's a different question. You're not asking for a text file to be returned. You're asking for the contents of an uploaded text file to be shown. Entirely different. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerry Kassebaum Sent: Monday, Dec

RE: File Upload

2006-12-04 Thread Webb, Andy
No idea what happened to my brain here. This was supposed to be a response to the File Upload thread. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Webb, Andy Sent: Sunday, December 03, 2006 7:20 PM To: perl-win32-users@listserv.ActiveState.com Subject

RE: Japanese chars and ARGV

2006-12-03 Thread Webb, Andy
Doesn't look like you set a file name or a MIME type in the result that would cause it to be interpreted as a document. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Wagner Sent: Friday, December 01, 2006 6:58 PM To: perl-win32-users@listserv.Activ

RE: Perl Abend on exit with Win32::CryptData

2006-10-17 Thread Webb, Andy
Win32::API is 0.41. Hmm. Will try on a couple different OS versions and see what happens. -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED] Sent: Monday, October 16, 2006 9:36 PM To: Webb, Andy; perl-win32-users@listserv.ActiveState.com Subject: Re: Perl Abend on exit with

RE: what?!?

2006-10-17 Thread Webb, Andy
:) I'd be willing to bet this particular feature won't bite you again. This is a good point to note how useful test first development is. http://perlunit.sourceforge.net If you start with the test/validation before even writing the code, you'll seldom have an issue with this in production. ---

RE: what?!?

2006-10-16 Thread Webb, Andy
Well, it's a pretty nifty part of the language if you're expecting it. Some languages provide for bounds checking in the syntax and some don't. Seems like bounds checking ought to be part of the healthy code though, especially if you're relying on externally sourced data/computation. You have to

RE: Perl Abend on exit with Win32::CryptData

2006-10-16 Thread Webb, Andy
, fault address 0x00011e5a.   The fault address isn’t always the same, btw.   I tried my code, the code from the POD and the code from both your posts with the same results.   System is : WinXP SP2, perl 5.8.8.817, capicom.dll 2.0.0.3   Andy

Cross-Domain Group Membership

2006-06-21 Thread Andy Speagle
the login token... or what...   I know that the "memberof" attributes won't be populated in the directory for user:  dom2\user ... with information from dom1 ... so I can't get it from there...   Has anyone done anything like this?  Thou

Re: Remote machine connectivity

2006-05-17 Thread Andy Speagle
f, $varPID ) ) {   print "Process successfully created on ".$strServer." with PID ".$varPID."...\n"; } else {   print "Failed to create process on ".$strServer."...\n";}   This should be pretty straight-forward... and completely untested... remembe

Re: Remote WMI + Win32_Process

2006-05-15 Thread Andy Speagle
objProcess) variable would be set... Thoughts?Andy Speagle-On 5/15/06, Timothy Johnson <[EMAIL PROTECTED]> wrote:   Are you getting the ProcessId property returned at the end? Have you checked the contents of $varPID?   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Remote WMI + Win32_Process

2006-05-15 Thread Andy Speagle
pl", undef, undef, $varPID ) ) {    print "Process successfully created with PID $varPID\n";} else {     print "Failed to create process.\n";} print $objProcess->{ProcessId}."\n";   It appears that I can't get any information about the process via the $objProc

Re: OLE - GETTING EXCEL CELL NAMES

2006-05-14 Thread Andy Speagle
There's a very nice set of modules for Excel you should check out:   Spreadsheet::WriteExcel Spreadsheet::ParseExcel   Cheers,   Andy Speagle  On 5/14/06, jagdish eashwar <[EMAIL PROTECTED]> wrote: Hi,I am unable to get the name of the cells in my excel worksheet though I can get

Re: Problem with regex

2006-05-12 Thread Andy Speagle
tring.\$ Please format me.\$\$\$ I am the endof the String.\$\$ And i am the last!"; $Data =~ s/[\$]{3}//;$Data =~ s/[\$]{2}//;$Data =~ s/\$//; print $Data ."\n"; Hope that helps...   Andy Speagle   -  On 5/12/06, Holger Wöhle <[EMAIL PROTECTED]> wrote: Hello,under Windows

Re: fork() and waitpid() issue...

2006-04-26 Thread Andy Speagle
   1,   NORMAL_PRIORITY_CLASS,   '.'   ) || die "Win32::Process::Create: $! ($^E)";     return $obj;} This all works fine in a console... so once again... I'm afraid that this sort of thing doesn't work right when handled as a CGI...   Thoughts?   Andy Spe

Re: fork() and waitpid() issue...

2006-04-26 Thread Andy Speagle
getting a proper process fired up...   Could you give me an example of how this might work?   Thanks,   Andy Speagle   -  On 4/26/06, $Bill Luebkert <[EMAIL PROTECTED]> wrote: Andy Speagle wrote:> Hi Bill,>> Thanks for the info... I tried your suggested code... though it doesn&#

Re: fork() and waitpid() issue...

2006-04-26 Thread Andy Speagle
aitpid '-544' Parent: waitpid '-10592' Parent: waitpid '-10344' Parent: I have 6 kids   --   You can see that it catches the first child thread (-11404) dying... but all subsequent children are not caught... is it that this script is processed as a cgi that it's

fork() and waitpid() issues...

2006-04-25 Thread Andy Speagle
you can see... the first child (PID -10180) is reaped... but the rest never seem to die... can anyone clue me into why that is?... I'm running ActiveState Perl 5.6.0 Build 623...   Thanks,   Andy Speagle ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Help with executing a command on remote machine using Net::Telnet

2001-07-01 Thread Andy Jennings
As specified in the Net::Telnet docs, your prompt should be a match string. Try something like:- prompt =>'/c:.*?>/' #untested on a full session but does not throw an error when called as below Andy - Original Message - From: "Satish Vadlamani" <[EMAIL PROT

Re: Active Perl NT -- How to send file as attachement or message body

2001-06-28 Thread andy
mtp->data(); $smtp->datasend("To: $email\n"); $smtp->datasend("From: $webmaster\n"); $smtp->datasend("Subject: $subject\n\n"); $smtp->datasend("Content-Type: text/html\n\n");    foreach $line (@file) {  $smtp->datasend(&q

Re: Regex (and substitution) help

2001-06-18 Thread Andy Jennings
Denis I think this will do the deal for you:- $tagger = "See SAY_PLEASE_TXT and SAY_HELLO_TXT."; $tagger =~ s/\b([A-Z]+_[A-Z_]+)\b/^$1^/g; print "$tagger\n"; Andy - Original Message - From: "Denis Pleic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: Win32::ODBC with Access2000

2001-06-12 Thread Andy Jennings
fectly too much. hth a bit Andy - Original Message - From: "Ronnie Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 10:17 AM Subject: Win32::ODBC with Access2000 > I am having a little difficulty with Access 2000 and ODBC. I am

Re: [An open complaint (was RE: An Index of Incivility in the Perl Com munity )] [more rant, please ignore]

2001-06-12 Thread Andy Jennings
start to finish, which I think gets a bit much. Andy (aka Danni-Christi Ashe-Canyon) - Original Message - From: "Chris Pettit" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 11, 2001 11:29 PM Subject: RE: [An open complaint (was RE: An Index of Incivility

Tk and fork()

2001-06-01 Thread Andy Jennings
on me - my inclination is that the child is not getting a complete copy of the resources independantly and therefore this can never work. The widgets must have some WinAPI stuff which is fixed - I think. I know this is a very broad question - I'm open to facts, opinions and educated gue

Re: interfacing with Eudora

2001-05-29 Thread Andy Jennings
linear and straightforward it is fairly wasy to use IO::Socket or one of the mail modules to send out the mail direct from the script. If you have 2000 server you can even just send them to your own SMTP service on your own machine. Andy - Original Message - From: "Michael Mirman" &l

Fw: need advice

2001-05-28 Thread Andy Jennings
de works fine in a finite program but if the GUI is going to > stay open and another transfer may be attempted, then there are probably > other file handle clean-up issues that will need addressing, but at least > you should be going in the right direction. > > hth > > Andy > > >

Re: fork error??

2001-05-28 Thread Andy Jennings
then you may have an OS memory paging problem. hth - a bit anyway. Andy - Original Message - From: "mmollenkopf" <[EMAIL PROTECTED]> To: "Andy Jennings" <[EMAIL PROTECTED]>; "Perl Win32" <[EMAIL PROTECTED]> Sent: Sunday, May 27, 2001

Re: need advice

2001-05-28 Thread Andy Jennings
robably other file handle clean-up issues that will need addressing, but at least you should be going in the right direction. hth Andy - Original Message - From: "David Johnson" <[EMAIL PROTECTED]> To: "Perl Users" <[EMAIL PROTECTED]> Sent: Saturday, May 2

Re: fork error??

2001-05-28 Thread Andy Jennings
Alan Probably at least a snippet of code around the fork would be good. Also Perl version/build and OS. Andy - Original Message - From: "mmollenkopf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 26, 2001 10:01 PM Subject: fork error?? > I k

Re: Server Side Include Question

2001-05-14 Thread Andy Jennings
The only way I think you may be able to do this would be through frames and you would need some persistent variables for the Perl script - maybe a hidden text input var for where you are in the list. Andy - Original Message - From: "steve silvers" <[EMAIL PROTECTED]

Re: substitution on a file

2001-05-03 Thread Andy Jennings
Add a check for a word boundary to the start and finish of the old word $_ =~ s/\b$oldWord\b/$newWord/g hth Andy - Original Message - From: "Rex Posadas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 11:42 AM Subject: substitution on

Re: Return codes ??

2001-04-19 Thread Andy Jennings
Title: PSCI_1 Paula   Most likely because the command returns a two byte int and the return code is only setting the high byte bits with all the low byte bits unset.   Dividing by 256 is the equivalent of 8 bitwise shifts to place all the set bits in the low byte.   Andy

Re: "Bizarre SvTYPE [157]" error when implementing fork() or Simple::proc

2001-04-19 Thread Andy Jennings
be 'exit;'. The parent will produce a non-zero value and so the condition will be false and the parent skips over the block of child code and goes on its merry way doing whatever else you want it to do. hth Andy - Original Message - From: "Jeremy Aiyadurai" <[EMAIL

Re: open file

2001-04-18 Thread Andy Jennings
Could you post the complete and exact error message plz together with the code 3 or 4 lines either side of the error line #. It sounds like more of a permissions prob but we need to know what you are trying to do. Andy - Original Message - From: "eo_pereira" <[EMAIL P

Fw: Whoops! CLARIFICATION: Reading a file from point A to B

2001-04-16 Thread Andy Jennings
st match in the file or is printed to whereever you want. Repeat $longline =~ s/()//si; for subsequent matches in the same file as often as required - probably you would use a while loop if you are expecting multiple matches. hth Andy > > > - Original Message - > From:

Re: Scan help

2001-04-16 Thread Andy Jennings
Bill It looks ugly, I know, but it works... $myvariable =~ s/\\rmcnt\\public/rmcntpublic <rmcntpublic> /; Add the g option if there are multiple instances of the string to change in the variable Andy - Original Message - From: <[EMAIL PROTE

Re: Orphan Process While Using Textpad

2001-04-08 Thread Andy Jennings
James I don't seem to have a problem with this on Textpad 4.3.1 32-bit version. The settings I use are:- Command: C:\Perl\bin\Perl.exe (or other location of Perl.exe) Parameters: d:\scripts\intest.pl (or location of script to run) and have the 'DOS command' box chec

Re: Subject: Detecting multiple instances

2001-04-08 Thread Andy Jennings
pts are running already as any .pl produces just a perl.exe in the tlist and any .plx does not appear at all as it runs under inetinfo.exe, the webserver process. I don't know how this goes in UNIX. HTH Andy - Original Message - From: "bowman" <[EMAIL PROTECTED]&g

Fw: how to represent "any character" (incl. \n) in regexp?

2001-04-07 Thread Andy Jennings
- Original Message - From: "Andy Jennings" <[EMAIL PROTECTED]> To: "jose quesada" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, April 07, 2001 11:43 PM Subject: Re: how to represent "any character" (incl. \n) in regexp? &g

Re: how to represent "any character" (incl. \n) in regexp?

2001-04-07 Thread Andy Jennings
Try (.|\n) instead. Andy - Original Message - From: "Bennett Haselton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 07, 2001 11:08 PM Subject: how to represent "any character" (incl. \n) in regexp? > Since according to

Re: File Permissions on NT

2001-03-13 Thread Andy J
Did you create fileb on the server with some Perl code or FTP it up there? There can be different permissions set with those two methods. Andy - Original Message - From: "Jim McCoy" <[EMAIL PROTECTED]> To: "Carl Jolley" <[EMAIL PROTECTED]> Cc: <[EMA

RE: Please Help!

2001-01-24 Thread Andy Jennings
his is selected during the install, but some systems may require a reboot before this goes into effect. Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 24, 2001 8:39 AM To: [EMAIL PROTECTED] Cc: Jon Bjornstad;