:\d+ turns into ? when passed to database

2000-05-30 Thread alan.swan
Hi, I am using DBI and DBD-ODBC to connect to my MS-SQL database. It seems that when I perform a prepare, any :\d+ regexs I passed in is turned into a question mark on the way to the database. And this bad, becos I'm trying to insert a date into the database. Anyone has any idea why this is happe

Re: Win32::OLE

2000-05-30 Thread Jan Dubois
On Tue, 30 May 2000 11:57:11 -0500, "Floyd Russell" <[EMAIL PROTECTED]> wrote: >Quick question about OLE. As I only program with OLE from a hacked >point of view I am wondering if there is a difference between OLE and >OLE2? I have an application that has an OLE2 interface and I am having >some d

Re: Win32::OLE for ActiveState 5.6

2000-05-30 Thread Jan Dubois
On Sun, 28 May 2000 4:52:48, "Richard Thorne" <[EMAIL PROTECTED]> wrote: >Has Win32::OLE been updated for 5.6 yet? Where can it be found? It is already included in ActivePerl. -Jan --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this messag

Is there a WINS perl module?

2000-05-30 Thread Ben Conrad
Hello, I was wondering if there is a perl module for WINS. I would like to write a script that can filter out certain strings from a -live- WINS database, kind of like the "search" feature in the NT WINS Administrator. Ben. Ben Conrad NT Administrator,

could someone try this on Win2k Server

2000-05-30 Thread Paul Rogers [CE]
Could someone try this code on Win2k Server: use Win32::AdminMisc; ($c_total, $c_free) = Win32::AdminMisc::GetDriveSpace("c:\\"); print "C: total:\t$c_total\nC: free\t$c_free\n"; See if it returns the correct values. It works ok on my w2k pro box but not my w2k server box. Thanks, P ---

RE: Date Conversion

2000-05-30 Thread Thomas_M
[EMAIL PROTECTED] wrote: > > > Does anyone know how to convert dates between Julian and > Gregorian Dates? > I did a Google search ("perl julian gregorian") and found this link: http://theoryx5.uwinnipeg.ca/CPAN/data/DateConvert/Convert.html It took all of 10 seconds. -- Mark Thomas [EMAIL

Re: Date Conversion

2000-05-30 Thread Anthony George
[EMAIL PROTECTED] wrote: > > Does anyone know how to convert dates between Julian and Gregorian Dates? > > Perry Chaturvedi > A quick search on perl.com/search for 'julian', and whaddya know: http://www.perl.com/CPAN-local/modules/by-module/Time/Time-modules-99.111701.tar.gz Time::JulianDay

Re: ftp client...put...FileHandle

2000-05-30 Thread $Bill Luebkert
Bas Janssen wrote: > > Hello all, > > I'm using Net::FTP and try to 'put' a file by a filehandle. > > ( http://search.cpan.org/doc/GBARR/libnet-1.0703/Net/FTP.pm : > " put ( LOCAL_FILE [, REMOTE_FILE ] ) > > Put a file on the remote server. LOCAL_FILE may be a name or a > filehandle. If LOCA

Re: nmake fails with h2xs tutorial to link to user-defined C library

2000-05-30 Thread Garrick Staples
Just a side note, not relating to your problem is that the tutorial isn't really clear on the fact that parts of Makefile.PL are written directly to Makefile. Which means that white space is tricky here: [EMAIL PROTECTED] wrote: > sub MY::postamble { > ' > $(MYEXTLIB): mylib/Makefile

Re: Installing DBI for use with ACTIVE STATE

2000-05-30 Thread Garrick Staples
> > Behalf Of [EMAIL PROTECTED] > > > > Hi everyone. > > > > > > I am installing DBI-1_13_tar to use on my Windows98 OS. Simply all I have > > > > is a zip file called: > > > > DBI-1_13_tar I think the missing piece here is that it is a 'tar' file. Tar files are archives containing multiple file

Win32::OLE

2000-05-30 Thread Floyd Russell
Quick question about OLE. As I only program with OLE from a hacked point of view I am wondering if there is a difference between OLE and OLE2? I have an application that has an OLE2 interface and I am having some difficulty interacting with it via Win32::OLE. Any insight to this would be greatly a

nmake fails with h2xs tutorial to link to user-defined C library

2000-05-30 Thread judyf
I am running through the h2xs tutorial, example 4 (www.perl.com/pub/doc/manual/html/pod/perlxstut.html) which shows how to write an XSUB to interact with a user-generated library. However, it fails when nmake tries to build the library. Due to a previous issue (see my last posting), and thanks t

Date Conversion

2000-05-30 Thread Perry . Chaturvedi
Does anyone know how to convert dates between Julian and Gregorian Dates? Perry Chaturvedi "Excellence is not a single act, its a daily habit." -Aristotle --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTE

Re: ODBC Questions

2000-05-30 Thread Anthony George
Check out Win32::ODBC and Dave Roth's page(www.roth.net), you can not only auto-create the dsn from your script, but also the mdb and tables >tony --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTED] Fo

RE: Module Hunting Tips [was: Calculating Time Difference]

2000-05-30 Thread Hogue, Jon
I find the alternative search engine (listed second) much more effective for my searches. It is http://theory.uwinnipeg.ca/search/cpan-search.html > -Original Message- > From: Joe Schell [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 30, 2000 10:35 AM > To: Perl-Win32-Users Mailing List

Win32::ODBC:Datatypes

2000-05-30 Thread Dan Ertman
Where can I find a list of the datatypes and syntax for Access? Specifically, I'm looking for ways to establish foreign keys and decimal places in a CREATE TABLE statement. To create an integer primary key, $db->Sql("CREATE TABLE blah (Blahuga INTEGER PRIMARY KEY);"); works, but how do I speci

RE: have idea to redirect STDOUT... anyone got anything better?

2000-05-30 Thread alan.swan
I'm not sure if/why eval works/don't work. But I believe $results = `perl $script`; can give you what you want Do note the that 'quotes' are back-ticks (normally left of 1 on a qewrty keyboard) Alan Swan. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTEC

RE: Module Hunting Tips [was: Calculating Time Difference]

2000-05-30 Thread Joe Schell
Maybe by using http://search.cpan.org/ > Behalf Of Terry Fowler > > > I've been wondering about this for a while. There > are lots and lots of modules available in many > different categories. How do you go about finding > just the right module for what you need - other than > just asking the

Re:Re: it looks simple

2000-05-30 Thread Greg Wardawy
Thank you again, Douglas >I think I get it now. Not exactly, my fault, I wasn't clear again > As soon as the totals hit 3 for a key, >you want to print that line and all following lines. As soon as the totals hit 3 for a key I need to print all lines for this key - preceding lines ($totals

Re: Phython?

2000-05-30 Thread rday
We use InfoSeek at Harlequin, and InfoSeek indeed uses Python. Checking on the ActiveState webpage, Zope uses Python as an implementation language. Python looks like a Serious Language to me. At 2000-05-30 14:36:42, Philip Newton <[EMAIL PROTECTED]> wrote: # Jan Harders wrote: # > Python is nut

Re: Understanding perlop

2000-05-30 Thread Ian D. Stewart
"Jimmy S. Lim" wrote: > > hi, > i came across this statement while reading Perlop. I don't understand how %s > is substituted w/ "s" or w/o "s" depending on the no. of dogs. %s is a hash. Well, not in this instance. Within a printf() statement %d and %s (and several others, perldoc -f sprintf f

have idea to redirect STDOUT... anyone got anything better?

2000-05-30 Thread Mike Kangas
Hey all, I have a perl script that reads in other perl scripts. After it reads the script the original runs the new script through eval(). Essentially what I want to happen is this. $results = eval $script; to capture all the STDOUT as if it were a system call. But this does not work. I am go

ODBC Questions

2000-05-30 Thread MATA Tech
I am in the process of reading information on using ODBC, but I have been left with several questions unanswered. Up until now, I have always created flat file databases and parsed them. Lately, as the size of these databases has grown, I realize that it would be more efficient to use the OD

RE: Phython?

2000-05-30 Thread alan.swan
>From what I have seen so far, am I right to say that Perl and Python are actually quite similar, but Python is more for those who wants to impose strict discipline onto himself? If that is true, I would make my students program in Python if I were a lecturer... ;) Alan Swan. --- You are cur

Module Hunting Tips [was: Calculating Time Difference]

2000-05-30 Thread Terry Fowler
I've been wondering about this for a while. There are lots and lots of modules available in many different categories. How do you go about finding just the right module for what you need - other than just asking the list? Looking for pointers on how to sift through all the wonderful gems in CPAN

Re: Phython?

2000-05-30 Thread Ian D. Stewart
Mihail Belanov wrote: > In fact, Python is good language but rarely used yet. Really? It seems quite prevalant in the Linux community. (or maybe I'm just imagine things...) Ian -- 99 little bugs in the code, 99 bugs in the code. Fix one bug, compile again, 100 little bugs in the code. 100

Re: New to LWP::Parallel::UserAgent

2000-05-30 Thread Grant Hopwood
-start- > "Matthew Rochlin" <[EMAIL PROTECTED]> >at05/29/2000 07:11 AM If you look carefully at the docs in LWP::Parallel you'll notice you haven't followed the example precisely. >foreach (keys %$entries) { >my $res = $entries->{$_}->response; $entries->{$_}->response returns an HTTP::R

Re: Phython?

2000-05-30 Thread Philip Newton
Jan Harders wrote: > Python is nuthing but a scripting language. I think O'Reilly > has a book or two about it. Check www.oreilly.com That's a bit like saying "Perl is nothing but a scripting language -- I think ORA has a book or two about it". You can do Real Things in Python, just like in Perl

Re: Phython?

2000-05-30 Thread Mihail Belanov
Python is much like Perl but with clear syntax and simple to understand object model. They say Python progams run somewhat slower than Perl ones. There is JPython too ( www.jpython.org ). It is the Python which compiles to Java bytecodes. Therefore some packages of original Python cannot be used i

Re: Data access

2000-05-30 Thread Ian D. Stewart
Garrick Staples wrote: > > I've also found the mysql docs to be great at teaching SQL. > > select is at http://web.mysql.com/Manual_chapter/manual_Reference.html#SELECT > and the TOC is at http://web.mysql.com/Manual_chapter/manual_toc.htm Additionally, I know of at least one copy of the SQL-92

Re: Phython?

2000-05-30 Thread rday
Python is yet another scripting language. you might want to look at http://www.python.org/> Not sure about the M$ stuff though. At 2000-05-30 07:06:48, "Scott K Purcell" <[EMAIL PROTECTED]> wrote: # Hello, # I was just curious, as I keep reading all the latest posts, and notice the # Pytho

Re: Phython?

2000-05-30 Thread Philip Newton
Scott K Purcell wrote: > But anyway what is Phython, A spelling mistake :-). Python is an interpreted language by Guido van Rossum, named after "Monty Python" and not after a snake. Its most striking feature is that whitespace is significant: instead of using braces to delimit blocks, you use ind

Re: Phython?

2000-05-30 Thread Jan Harders
Python is nuthing but a scripting language. I think O'Reilly has a book or two about it. Check www.oreilly.com Regards, Jan Harders -- hitservice.de > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]Im Auftrag > von Scott K Purcell > Gesendet: Dienstag, 30

Re: Phython?

2000-05-30 Thread Preston Newton
Goto www.python.org I just started looking into Python myself. Preston --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this message to [EMAIL PROTECTED] For non-automated Mailing List support, send email to [EMAIL PROTECTED]

Phython?

2000-05-30 Thread Scott K Purcell
Hello, I was just curious, as I keep reading all the latest posts, and notice the Python name all over the new ActiveState pages. But anyway what is Phython, and where could I find out what it is, and if it would be useful to me? Thanks Scott --- You are currently subscribed to perl-win32-user

Select Count() Statement into Perl

2000-05-30 Thread Perry . Chaturvedi
Good morning and hello to everyone: I am using a very simple "select count(*) from tablename" to get the total number of rows and then the PERL statement that I am using is: $rowcount=$dbh->do($sql); I am not getting my results this way. Is the perl statement correct or am I doing something wron

OT: Lincoln Stein on NPR

2000-05-30 Thread Joseph P. Discenza
Perlers, I heard the author of CGI.pm interviewed this am on NPR's Morning Edition, about 6:40 ET; it'll turn up again at 8:40 ET for anyone who's interested. He's (naturally) talking about the Human Genome Project. If you can't get NPR where you are, it's streamed at http://www.wkar.org on thei

Re: Visual Perl in Visual Studio

2000-05-30 Thread Philip Newton
Jan Dubois wrote: > I actually find your attitude quite annoying. The packages on > PPM are provided as a *free* service for people who don't own > a C compiler and/or don't want to bother with building the > modules themselves. I'd like to take this opportunity to express my thanks for this s

Calling convention?

2000-05-30 Thread Bo Holmstedt
Hello again, I have have problems embedding perl subroutines. According to documentation it is possible to call a Perl sub from a XSUB. Below is an example from a perl sub that is to be called and the c routine that call the perl sub. All code is taken from examples but running this ends up with

Re: Visual Perl in Visual Studio

2000-05-30 Thread Mihail Belanov
We should not much worry about MS deeds, IMHO. If MS takes control over Perl and Python then we can safely escape to Java. - Original Message - From: Paul Rogers [CE] <[EMAIL PROTECTED]> To: Perl-Win32-Users Mailing List <[EMAIL PROTECTED]> Sent: Sunday, May 28, 2000 8:48 PM Subject: Visua

RE: Visual Perl in Visual Studio

2000-05-30 Thread alan.swan
Yes. Three cheers for Jan! :) One will learn to appreciate PPMs after experiencing the building of a module hands-on ;) Alan Swan > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf > Of Simon Oliver > > Well said Jan, I like ppm and even run my

RE: Visual Perl in Visual Studio

2000-05-30 Thread Bellenger, Bruno (Paris)
>On Sun, 28 May 2000 20:59:53 -0400, Matthew Persico <[EMAIL PROTECTED] > wrote: >>"Paul Rogers [CE]" wrote: >>> >>> Something I never dreamed would happen... >>> >>> http://www.activestate.com/Cor