FW: Win32::OLE - Mem Leak?

2006-03-24 Thread Paul Sobey
Anybody got any ideas? Anybody from AS? Not sure what I can try next - short of scheduling a restart of the service every week. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Sobey Sent: 20 March 2006 11:50 To:

Re: How to best count the number of words in a sentence?

2006-03-24 Thread Eric Amick
On Thu, 23 Mar 2006 12:05:07 -0800, you wrote: This is probably a fun trivial question: I'd like to count the number of words in a string. My command: my $count = split(/\s+/,$line); works. But Perl complains about: Use of implicit split to @_ is deprecated It works, but it's deprecated. I can

RE: How to best count the number of words in a sentence?

2006-03-24 Thread Chris
Eric Amick wrote: If you've forgotten, a negative third argument forces split to produce all of the possible fields, keeping trailing null fields. In particular, it ignores the size of the destination list. I've more often seen this empty list idiom in conjunction with m//g--not that it's

Regex Needed

2006-03-24 Thread Paul Rousseau
Hello, I am looking for help on a regex that examines strings such as xxxN yyy sssNNN xxxN yyyNyyy sss xxxN yyyNyyy ssN and returns only the sss part? N is always a numeral, and s is always alphabetic. Here is what I have so far as an example. I believe there is an eloquent

Re: How to best count the number of words in a sentence?

2006-03-24 Thread Chris Wagner
What the hell, I'll give my version too. ;) $number = $text =~ m/(\s+)/sg + 1; Where $text is the entire document or whatever. Instead of counting ur fingers, u can count the spaces between ur fingers and add one. -- REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =-- ...ne cede malis

RE: Regex Needed

2006-03-24 Thread Joe Discenza
Paul Rousseau wrote, on Friday, March 24, 2006 12:38 PM :I am looking for help on a regex that examines strings such as : : xxxN yyy sssNNN : xxxN yyyNyyy sss : xxxN yyyNyyy ssN : : and returns only the sss part? N is always a numeral, and s : is always alphabetic. Does

RE: Regex Needed

2006-03-24 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: Hello, I am looking for help on a regex that examines strings such as xxxN yyy sssNNN xxxN yyyNyyy sss xxxN yyyNyyy ssN and returns only the sss part? N is always a numeral, and s is always alphabetic. Here is what I have so far as an

RE: Regex Needed

2006-03-24 Thread Jerry Kassebaum
$string = MBH1 WELL PIT050; $string =~ s/.* (.*?)\d+/\1/; # Questionmark makes it non-greedy ($prefix) = $string; # Didn't figure out how to do ($prefix) = $string =~ print $prefix; ; ** Hello, I am looking for help on a regex

Re: Regex Needed

2006-03-24 Thread Brian H. Oak
Paul, Give this a shot: /^\w+\s+\w+\s+([A-Za-z]+)\d+/ A regex should be as explicit and exclusive as possible, so I would remove the lowercase (a-z) portion of the character class if you know for sure that the letters you want will always be uppercase. -Brian _

Re: Regex Needed

2006-03-24 Thread
Try this: $string =~ /^.{3}\d\s[^\s]+\s([a-zA-Z]+)\d+$/; $prefix = $1; That should match: - any three characters at the beginning of the string: ^.{3} - followed by a number: \d - followed by whitespace: \s - followed by any one or more characters until the next whitespace [^\s]+ -

Re: Regex Needed

2006-03-24 Thread David Legault
Something like this : /(\w\s){2}([a-zA-Z]+)\d*/ David Joe Discenza wrote: Paul Rousseau wrote, on Friday, March 24, 2006 12:38 PM :I am looking for help on a regex that examines strings such as : : xxxN yyy sssNNN : xxxN yyyNyyy sss : xxxN yyyNyyy ssN : : and returns only

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Sisyphus wrote: - Original Message - From: Robert May . . Steps to invoke problem: (1) run: h2xs -A -n SomeModule (2) cd into the created SomeModule directory (3) run the incantation: perl -MConfig_m Makefile.PL nmake nmake test Generally this works fine, and

New for me

2006-03-24 Thread Jerry Kassebaum
I think this is amusing. Can you guess in advance what it's going to do? while(DATA){print;} ; __END__ while(DATA){print;} ; __END__ I run it by clicking on it in a Windows folder. ___ Perl-Win32-Users mailing list

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Robert May wrote: [possible bug with either mingw or DynaLoader under win98, narrowed down to a mingw bug] Now I just need to find out what the difference is between the 2 dll's. MS's Dependency walker (Depends.exe, comes with the platform SDK) loads both fine, and doesn't reveal anything

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Sisyphus
- Original Message - From: Robert May . . A series of tests: Drop - ok DropF - fails AropF - fails DropFi- fails DropFile - fails DropFiles - fails DropX - fails DropFx- fails DropFilesx- fails xDropFiles- ok

Re: [aswin32] Re: Possible DynaLoader or MinGW bug?

2006-03-24 Thread Robert May
Sisyphus wrote: - Original Message - From: Robert May . . A series of tests: Drop - ok DropF - fails AropF - fails DropFi- fails DropFile - fails DropFiles - fails DropX - fails DropFx- fails DropFilesx- fails xDropFiles

Re: Regex Needed

2006-03-24 Thread Chris Wagner
At 10:38 AM 3/24/2006 -0700, Paul Rousseau wrote: I am looking for help on a regex that examines strings such as xxxN yyy sssNNN xxxN yyyNyyy sss xxxN yyyNyyy ssN and returns only the sss part? N is always a numeral, and s is always alphabetic. Do u have to examine those as

Re: New for me

2006-03-24 Thread Ted S.
Jerry Kassebaum [EMAIL PROTECTED] graced perl with these words of wisdom: I think this is amusing. Can you guess in advance what it's going to do? while(DATA){print;} ; __END__ while(DATA){print;} ; __END__ I run it by clicking on it in a Windows folder. My first guess is that

Re: New for me

2006-03-24 Thread Chris Wagner
At 05:16 PM 3/24/2006 -0600, Jerry Kassebaum wrote: I think this is amusing. Can you guess in advance what it's going to do? while(DATA){print;} ; __END__ while(DATA){print;} ; __END__ My first guess was that it would just print itself. But not so fast. It runs differently whether u paste it