Re: Tough qn: understanding this (C) error while using inline

2006-02-22 Thread Sisyphus
- Original Message - From: "Foo Ji-Haw" > It complains of 'error C2275: 'ULONG' : illegal use of this type as an > expression' > > Is that a MSVC issue, or more to do with inline.pm? It's an MSVC issue - that "illegal use", while definitely an "illegal use" in terms of the original C st

Re: Tough qn: understanding this (C) error while using inline

2006-02-22 Thread Foo Ji-Haw
Hello Rob, It's amazing. You are right: if I put ULONG just after the function declaration like this: void StartupTapi (HINSTANCE hInstance) { ULONG ret; apiVersion = 0x3; ... It's ok. But if I shift the variable only 1 line down: void StartupTapi (HINSTANCE hInstance) { apiVer

Re: Tri-grams?

2006-02-22 Thread $Bill Luebkert
amit hetawal wrote: > Hello Bill > Thanks for your help... > i got the initial part running but now i have so read the text from a > large text file havin all the sentences and special characters and in > that i have to get the trigrams working and not only for the above text > ...can you please s

RE: Re: Tri-grams?

2006-02-22 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Unclear in that are you saying? Is a__ where _ is a space is valid or can three spaces be valid? So are you working with only alpha and spaces or alpha, numbers and spaces?   Wags ;) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of amit hetawa

RE: Win32::TieRegistry

2006-02-22 Thread Ng, Bill
Fixed it ... Worked around it I should say. The following code, which specifies the READ_KEY access level (1), worked fine: $key = $Registry->Open("LMachine/System/CurrentControlSet/Enum/", {Access=>1}) || die "$^E\n"; ##Works $key = $Registry->{"LMachine/System/CurrentCo

Re: Re: Tri-grams?

2006-02-22 Thread amit hetawal
  On Wed, 22 Feb 2006 $Bill Luebkert wrote : >amit hetawal wrote: > > > > > Hello All, > >  I needed some logic behind the code for text analysis. its like i have > > to calculate the frequency of the each of the tri-grams present in a > > given piece of text > > i.e i need a way to get the nu

RE: Tri-grams?

2006-02-22 Thread Thomas, Mark - BLS CTR
And here's the "abuse of a regex" version. I recommend $Bill's version instead. :) $_ = "hello how are you hello"; s/([^ ])(?=([^ ][^ ]))/$t{$1.$2}++/eg; use Data::Dumper; print Data::Dumper::Dumper(\%t); -- Mark Thomas Internet Systems Architect ___ BAE SY

Some help please

2006-02-22 Thread SolHai Haile
Hi, I am having another problem if you can help me: I have a script with GUI based, when a button is pressed, it will set "$Port" and does another script call. I have three ways to do this but none of them are working to my satisfaction or what I want to do. $Port = 7003 ; can be between 700

[PMX:VIRUS] Re:

2006-02-22 Thread liberall2004
  photo    photo2    photo3 The original content of this message part has been replaced by this text because it tested positive for the following virus(es): W32/Nyxem-D, W32/Nyxem-D The original message has been qua