Re: Passing an array to a regexp

2000-05-24 Thread tim_meadowcroft
>> I have the following condition: >> if ( $x =~ /^[one|two|three|four]/ ) { ...} >> However, I would like to test for values in an array; for example: >> @array = ( "one", "two", "three", "four" ); >> Can I now write the regexp to pull out the values of the array instead, >> making the reg

RE: How to modify the Screen Saver setting with PERL?

2000-05-24 Thread tim_meadowcroft
>> I bet the screen saver and background images are simply registry values. If >> I were trying to do a similar task, I would search Microsoft's web page to >> find out what registry setting is used to set these things, and then get a >> registry module from www.cpan.org to set the registry key

Re: How to find the element no. of Grep match?

2000-05-22 Thread tim_meadowcroft
>> i have a @list that contains elements i do not know. i'm using grep to match >> some words inside the @list. >> for example: >> $match = grep /\d/, @list; >> my question is: is there a way to find the element No. eg: $list[number] of >> the latest match? ($first_hit_number) = grep( $list[$

Re: Curve Fitting and statistics

2000-05-22 Thread tim_meadowcroft
>> I am looking for statistics modules to enable me to fit trendlines to >> charts. I am thinking of linear regression, logrithmic, exponential, power >> and moving averages. I found a module called Statistics OLS dated 1998. >> Before I continue to look for modules I thought I would ask the co

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread tim_meadowcroft
Justin, Between you and Jan I think we have it wrapped up. ASP always had a facility for compile-once/run-many, but until the 6xx builds PerlScript didn't take advantage of it (ie the Clone() call that Jan mentions). My interpretation of what was happening was generally correct for those 5xx

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread tim_meadowcroft
Jan Dubois wrote: >> No, Active Scripting Engines can support a Clone() method to allow >> duplication of already compiled scripts. This isn't implemented in >> PerlScript from builds 5xx whereas VBScript and JavaScript do support it. Exactly the sort of call I expected - now why did I think

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread tim_meadowcroft
Ian. D. Stewart wrote: > From "ASP in a Nutshell", p. 27: >> > The Application object is initialized by IIS the moment the first client requests >> > any file from within the given virtual directory. It remains in the server's >> > memory until either the web service is stopped or the applic

Re: Win32::API - Get file version information

2000-05-19 Thread tim_meadowcroft
>> I'm trying to retrieve version information from file(s). >> It seems that I have to use 3 Win32 functions: Personally, I just use Win32::AdminMisc use Win32::AdminMisc; my %vInfo; if (Win32::AdminMisc::GetFileInfo( $file, \%vInfo )) { print "$_ : $vInfo{$_}\n" foreach sort keys

Re: An attempt to clear up Active Scripting Misconceptions

2000-05-19 Thread tim_meadowcroft
Justin Rogers said: >> Everyone is saying that ASP caches pages in memory, but not the compiled >> pages. But I'd like to go straight to the root of the problem and that >> lies in some C/C++ code. So here goes: >> An Active Scripting Engine has to support many interfaces (thus the way of >>

RE: Perl speed vs ASP speed

2000-05-18 Thread tim_meadowcroft
>> Now will someone answer the original question for this guy? >> Assume this consultant only knows about VBScript and has only >> used VBScript with ASP. That is the default mind-set of a drone >> of the Microsoft collective. >> Now please compare IIS/ASP/VBScript with lots of >> off-the-shelf

Re: Benchmark question

2000-05-18 Thread tim_meadowcroft
>> I was wondering if there is a speed difference between using IO::File >> versus a standard opening of a file with a filehandle. I think you'll find that execution speed is almost identical (IO:File is a fairly thin wrapper, so the timing is dominated by the underlying system call), but the

Re: Perl speed vs ASP speed

2000-05-18 Thread tim_meadowcroft
>> I'm curious about ASP speed and abilities versus Perl. First, the Win32-Web list may get you more answers for this. Having said that, here goes ASP is an environment, pick your language to go with it (I use Perl). So ASP versus Perl is meaningless, but "ASP and Perl" vs "mod_perl" is

Re: A good editor - ntemacs

2000-05-17 Thread tim_meadowcroft
>> anyone know how to change the colors in ntemacs syntax highlighting? the >> default colors aren't very legible. Put the following Lisp in your startup file (c:\_emacs unless you've made one elsewhere). Close emacs and start it up again. This gives colours more like the PC norms (eg comment

Re: ODBC on WinNT

2000-05-09 Thread tim_meadowcroft
>> Can you suggest any other areas for me to explore? First thing, if you're running IIS with NT Challenge Response authentication enabled, then the script runs with the permission of the browsing user, NOT the web server user, and if the access file is on another computer then you won't be ab

RE: Thoughts on alarm()

2000-04-27 Thread tim_meadowcroft
>> The win32 API has a SetTimer() function that >> lets you pass a callback procedure to be called >> when the specified time period has elapsed. >> Maybe it would be possible to implement this in Perl? SetTimer() relies on sending a WM_TIMER message, and an event loop looking for that. If yo

Re: Thoughts on alarm()

2000-04-27 Thread tim_meadowcroft
>> I want alarm() under Win32 so badly, I can taste it. I hate to say it, but you're looking at it the wrong way. Win32 doesn't do "pre-emptive notifications" between threads (you have to look and see if you've been notified) => Therefore it doesn't support signal() => Therefore it doesn't