Re: perlctrl and cygwin continued

2005-02-16 Thread Chris Wagner
At 06:21 PM 2/16/05 -0800, Edward Peschko wrote: >works, and hence, you'd think that > > perlctrl --perl C:\\perl\bin\\perl.exe > >would work, but it doesn't. perlctrl parses everything right, and >even prints the correct path to perl when the error occurs, but the >error still does occur.

Re: perlctrl and cygwin continued

2005-02-16 Thread Edward Peschko
On Wed, Feb 16, 2005 at 09:21:57PM -0500, Chris Wagner wrote: > At 05:10 PM 2/16/05 -0800, Edward Peschko wrote: > >Its only when I delete every possible path where perl *might* be found > >and rely on the system path, when I can get to the right perl. > >Its as if cygwin is mangling the string in

Re: perlctrl and cygwin continued

2005-02-16 Thread Chris Wagner
At 05:10 PM 2/16/05 -0800, Edward Peschko wrote: >Its only when I delete every possible path where perl *might* be found >and rely on the system path, when I can get to the right perl. >Its as if cygwin is mangling the string in some minor way to make it >so perlctrl doesn't recognize the path..

Re: perlctrl and cygwin continued

2005-02-16 Thread Edward Peschko
On Wed, Feb 16, 2005 at 12:32:07PM -0800, Jan Dubois wrote: > On Wed, 16 Feb 2005, Edward Peschko wrote: > > However, if you modify the path inside of cygwin destructively, saying > > something like: > > > > export PATH=/cygdrive/c/Perl/pdk/bin:/cygdrive/c/Perl/bin/:/bin > > > > then - even t

RE: perlctrl and cygwin continued

2005-02-16 Thread Jan Dubois
On Wed, 16 Feb 2005, Edward Peschko wrote: > However, if you modify the path inside of cygwin destructively, saying > something like: > > export PATH=/cygdrive/c/Perl/pdk/bin:/cygdrive/c/Perl/bin/:/bin > > then - even though perlctrl is still in your path - you get the error > that I mentione

Re: perlctrl and cygwin continued

2005-02-16 Thread Edward Peschko
On Wed, Feb 16, 2005 at 10:58:32AM -0800, ActiveState Support wrote: > Hi Edward, > > I've just tested this scenario and perlctrl (PDK 6.0) seems to work ok within > a cyqwin environment, as long as "ActivePerl" is on the PATH.Please check your > $PATH by doing echo $PATH. > > However, please not

RE: Reg. expression help

2005-02-16 Thread Gerber, Christopher J
-Original Message- > Can someone help me with the syntax of deleting the last word of text string. > i.e. $string = 'my abc 123' > Like to have only 'my abc' David, Quick and easy: $string = 'my abc 123'; $string =~ s/\s+\S+$//; This assumes that you are replacing one or more whitespac

Tied objects for AD

2005-02-16 Thread John_Wunderlich
Hi; I'm investigating some AD reporting tools, and it's looking like I may want to roll my own instead. Does the Tie::LDAP work with the objects in Active Directory? Or is there a better way to access their properties? What I'm looking to do is track group memberships and nested group memberships

Re: Reg. expression help

2005-02-16 Thread Сергей Черниенко
Hello David, Wednesday, February 16, 2005, 5:26:22 PM, Вы написали: HD> Hi, HD> Can someone help me with the syntax of deleting the last word of text HD> string. HD> i.e. $string = 'my abc 123' HD> Like to have only 'my abc' use strict; my $string = 'my abc 123'; $_ = $string; my @string = spl

Re: Reg. expression help

2005-02-16 Thread Ing. Branislav Gerzo (mail-lists)
Hsu, David [HD], on Wednesday, February 16, 2005 at 10:26 (-0500) thoughtfully wrote the following: HD> Can someone help me with the syntax of deleting the last word of text HD> string. HD> i.e. $string = 'my abc 123' HD> Like to have only 'my abc' my $string = 'my abc 123 f '; $string =~ s/(.*)\

RE: Reg. expression help

2005-02-16 Thread Peter Eisengrein
You can do this a few ways. Here are two: my ($way_1) = $string =~ /(\w+\s{1,}\w+)\s{1,}\w+$/; my ($way_2) = join(" ",@_[0,1] = split(/ +/,$string)); print "way_1 = $way_1\n"; print "way_2 = $way_2\n"; Out of curiosity, I benchmarked these and the regex is faster than the array slice. Lucky for

RE: Reg. expression help

2005-02-16 Thread Tom Pollard
On Wed, 16 Feb 2005, Erich Beyrent wrote: > > Can someone help me with the syntax of deleting the last word of text > string. > > i.e. $string = 'my abc 123' > > Like to have only 'my abc' > > #!/usr/bin/perl > > $string = 'some string'; > $string =~ s/(?<=\s)(.*?)$//g; > > print "String = $st

Recall: Reg. expression help

2005-02-16 Thread Hsu, David
Hsu, David would like to recall the message, "Reg. expression help". ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Reg. expression help

2005-02-16 Thread Erich Beyrent
> Hi, > Can someone help me with the syntax of deleting the last word of text string. > i.e. $string = 'my abc 123' > Like to have only 'my abc' > > Thanks, > David #!/usr/bin/perl $string = 'some string'; $string =~ s/(?<=\s)(.*?)$//g; print "String = $string\n"; HTH -Erich- _

Reg. expression help

2005-02-16 Thread Hsu, David
Hi, Can someone help me with the syntax of deleting the last word of text string. i.e. $string = 'my abc 123' Like to have only 'my abc' Thanks, David ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://l

Re: :ping broken in 5.8.6?

2005-02-16 Thread $Bill Luebkert
Paul Sobey wrote: > It occurs on Win2000 SP4 as well - seems more general than that. There's > a thread here but no real information apart from confirmation: > > http://groups.google.co.uk/groups?hl=en&lr=&client=firefox-a&rls=org.moz > illa:en-US:official&threadm=C0BB65FAFACE8A41BEFACF015195B88A

RE: :ping broken in 5.8.6?

2005-02-16 Thread Paul Sobey
It occurs on Win2000 SP4 as well - seems more general than that. There's a thread here but no real information apart from confirmation: http://groups.google.co.uk/groups?hl=en&lr=&client=firefox-a&rls=org.moz illa:en-US:official&threadm=C0BB65FAFACE8A41BEFACF015195B88A011A4D20%40H OPPLE.countryday

Re: :ping broken in 5.8.6?

2005-02-16 Thread $Bill Luebkert
Paul Sobey wrote: > Does anyone know anything more about this? I've just been bitten by > it... I believe there was a thread on this already - maybe check the archives. I believe it's a bug introduced with SP2 if I remember correctly - there should be a fix, but not sure when it will happen. --

RE: :ping broken in 5.8.6?

2005-02-16 Thread Peter Eisengrein
For the record, it works ok with v5.8.3 on WinXP/SP2 > -Original Message- > From: Paul Sobey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 16, 2005 8:30 AM > To: Chris; perl-win32-users > Subject: RE: :ping broken in 5.8.6? > > > Does anyone know anything more about this? I've

RE: :ping broken in 5.8.6?

2005-02-16 Thread Paul Sobey
Does anyone know anything more about this? I've just been bitten by it... Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Sent: 26 January 2005 21:04 To: perl-win32-users Subject: FW: :ping broken in 5.8.6? > I put in a report on this rt.cpa