Re: perl on win32 annoyances

2003-10-21 Thread Greg Matheson
On Wed, 22 Oct 2003, Sisyphus wrote: > I'd actually be interested to hear from anyone who has built perl using > a more recent gcc/mingw . from where, precisely, was the compiler > obtained; what fiddling was necessary and what perl source was used. I used MSYS 1.0.8(0.46/3/2) 2002-09-07

Re: perl on win32 annoyances

2003-10-21 Thread Sisyphus
Edward Peschko wrote: > > well, that helps. Can you install all of the Win32::Process, etc, modules based on it? > I think that any pure perl modules that simply 'use Win32::API;' will work fine, though of course I have no first hand experience of Win32::API on Cygwin. But most, if not all, of

Re: perl on win32 annoyances

2003-10-21 Thread Edward Peschko
On Tue, Oct 21, 2003 at 10:00:34PM -0500, Taylor Lewick wrote: > Jeez, you just said what I have been thinking, which is again why I hate > Windows so much... > But beyond that, have you found a good way to cat files and do grep? I > think the dos command find works for grep, but havent gotten aro

Re: trying to use win32::OLE with alt credentials for AD.

2003-10-21 Thread Simon Whitaker
Hi David, Assuming that i understand correctly and you want to get the object from the AD using specified credentials, then you can use OpenDSObject as per below... Note that where LDAP: (or GC:) is passed, the string for some reason must be uppercase. Good luck, Simon # Get the object (w

Re: perl on win32 annoyances

2003-10-21 Thread Edward Peschko
On Wed, Oct 22, 2003 at 12:26:08PM +1000, Sisyphus wrote: > Edward Peschko wrote: > > > > > > >No, what I want to do is use *cygwin*'s perl with Win32::API calls. > > I looked a little harder and found that Daniel Risacher > <[EMAIL PROTECTED]> is one guy who's written a Cygwin port of > Win32:

Re: perl on win32 annoyances

2003-10-21 Thread Sisyphus
Edward Peschko wrote: No, what I want to do is use *cygwin*'s perl with Win32::API calls. I looked a little harder and found that Daniel Risacher <[EMAIL PROTECTED]> is one guy who's written a Cygwin port of Win32::API - which basically involves rewriting the assembly code in API.xs. (That's

Exe2perl - the C version

2003-10-21 Thread Allegakoen, Justin Devanandan
List, I know there's exe2perl, but a while back I remember there being a thread with a link to a C program that can extract Perl from an executable. Anyone know where it is? Thanks Just in ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubs

Re: a TMTOWTDI question...

2003-10-21 Thread $Bill Luebkert
Joseph Sheehan wrote: > I have a question in the spirit of there's more than one way to do it. > I have an answer, but I'm looking for a more "slick" answer, i guess. > > Often when I look for various strings within a given line, I'm looking > to print not only the entire line to a file, but

RE: perl on win32 annoyances

2003-10-21 Thread Peter Guzis
I'll just touch base on a few points here instead of trying to insert my replies into a morass of angle brackets. :P > yes, but what if you want to use commands that are native to the platform, not > perl analogs? And what if you want to do: "Native" almost invariably means "non-portable". Thi

Re: Reg Ex

2003-10-21 Thread Bernard Kenik
1. open the file for read 2. read one line 3. use $newstring = substr($line, 20) to remove the first 20 characters 4. check if your 4 character string match /^XWYZ/ 5. you can separate the $newstring if you want to into 2 substrings $substringA = substr($newstring, 0, 4) $substringB = su

Re: perl on win32 annoyances

2003-10-21 Thread $Bill Luebkert
Edward Peschko wrote: > No, what I want to do is use *cygwin*'s perl with Win32::API calls. If cygwin > compiled > natively, then one would have a lot more flexibility; no need for a non-free > compiler, > no pathing issues, ability to download and compile the modules I want instead of > going

a TMTOWTDI question...

2003-10-21 Thread Joseph Sheehan
I have a question in the spirit of there's more than one way to do it. I have an answer, but I'm looking for a more "slick" answer, i guess. Often when I look for various strings within a given line, I'm looking to print not only the entire line to a file, but also the previous line. I usual

Re: Reg Ex

2003-10-21 Thread $Bill Luebkert
Ken McNamara wrote: > Joseph - > > Foreach line, split on the 4-digit code. If you have an @array[1] > result then cat the code with the @array[1] result and save it. Or if you really want a regex: use strict; foreach ( "abcdefghijklmnopqrxyz01232456789\n", # bad one "abcdefghijkl

Re: perl on win32 annoyances

2003-10-21 Thread Edward Peschko
On Tue, Oct 21, 2003 at 07:26:05PM -0400, Hanson, Rob wrote: > > 1) If I choose cygwin, the unix development tasks > > go easier. But the Win32 stuff, in particular > > Win32::API, etc. is not compiling > > It won't compile in cygwin, but there is no reason why you can't use > ActiveState's Perl

Re: Reg Ex

2003-10-21 Thread Ken McNamara
Joseph - Foreach line, split on the 4-digit code. If you have an @array[1] result then cat the code with the @array[1] result and save it. -- KenMc - [EMAIL PROTECTED] http://www.grandcanyonhiker.com See our DVD - 'Hiking the Grand Canyon - The Corridor Trails' Jos

RE: perl on win32 annoyances

2003-10-21 Thread Hanson, Rob
> 1) If I choose cygwin, the unix development tasks > go easier. But the Win32 stuff, in particular > Win32::API, etc. is not compiling It won't compile in cygwin, but there is no reason why you can't use ActiveState's Perl with Win32::API under cygwin. Install it outside of cygwin, then call it

perl on win32 annoyances

2003-10-21 Thread Edward Peschko
hey all, I've been trying to get a consistent perl on win32 experience going here, where by consistent I mean: 1) being able to develop unix applications on win32 2) being able to develop win32 applications on win32 both using perl. However, in doing so, I'm finding that the p