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.
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
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..
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
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
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
-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
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
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
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/(.*)\
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
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
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
> 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-
_
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
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
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
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.
--
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
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
20 matches
Mail list logo