RE: invoking perl from c++

2002-07-18 Thread Michael B. Wright
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of abhishek srivastava Sent: Wednesday, July 17, 2002 10:12 PM To: [EMAIL PROTECTED] Subject: invoking perl from c++ Hello All, Hello. We are wrinting a c++ program which does a lot of db

RE: Help Accessing A:

2002-07-18 Thread Sturdevant-Contractor, Robert W
Hi guys, Thanks for the response...ya, it does sound like the file is not being closed. However, please look at the first sentence of my original second paragraph. Here's the simple code: open( FILEHANDLE, a:/filename ); $Line1 = FILEHANDLE; $Line2 = FILEHANDLE; close( FILEHANDLE ); When

Regex - matching a string with no spaces

2002-07-18 Thread Martin, Greg \(CSC\)
If there's a better place to post this, please let me know. I'm trying to write a module that looks at mailbox names and excludes non-people. I use regex to match specific strings which I no are not people, but I'd like a generic regex to match strings which have no spaces (a common indicator

Re: Regex - matching a string with no spaces

2002-07-18 Thread $Bill Luebkert
Martin, Greg (CSC) wrote: If there's a better place to post this, please let me know. I'm trying to write a module that looks at mailbox names and excludes non-people. I use regex to match specific strings which I no are not people, but I'd like a generic regex to match strings which have

Re: @- / @+ versus $1 .. $9 ..

2002-07-18 Thread Jenda Krynicky
From: [EMAIL PROTECTED] Ok, so to clarify then the use of the grouping operator /(.)/ imposes the penalty, not the $1 reference to the grouped data? Exactly. use Benchmark; $string = 'sdfg q3wgrasdga wiufeg

RE: Perl question

2002-07-18 Thread Shea, Linchi
qq/word/ is the same as word. Linchi -Original Message- From: Aaron Trevena [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:01 AM To: Activeperl Subject: RE: Perl question Dietmar Thal: why not $pattern = qw(\$f); ? because qw(word) is the same as word

Re: invoking perl from c++

2002-07-18 Thread jjore
Well... let's assume you've read the perlembed man page. I've never stuck perl into C++ - I have stuck C into perl. It's not terribly hard to work with perl from C or C++ so *if* you are up to it you can do things that way. The thing I wonder about is why you are even doing this. Is this

Re: Regex - matching a string with no spaces

2002-07-18 Thread jjore
Actually... for simplicities sake drop the + modifier and just negate the result. A read of 'Mastering Algorithms with Perl' will also reveal that for static string matches you get better performance (not that I've benchmarked it myself, I just trust the text) from index(). $string !~ /\s/

RE: Help Accessing A:

2002-07-18 Thread Sturdevant-Contractor, Robert W
Hi Will, system(dir A: nul) does the job. Not clean but not ugly, either ;-) NT should handle the diskette swap better but this works. I think this has been an issue all along but not recognized. I wonder if 2000 and XP have the same behavior... Many thanks to all who responded. Bob

Problem with installing libwww-perl via PPM3

2002-07-18 Thread Cutts III, James H.
I am having trouble installing libwww-perl via PPM3 v 3.0.1. I have just reinstalled ActiveState Perl v5.6.1 build 633 on my NT4.0 SP6 computer after completely uninstalling all previous version of ActiveState Perl. The normal failure is the following: Repositories: [1] ActiveState Package

Use of Windows Printer

2002-07-18 Thread Angelo Bindi
Hi, ist it possible to use a Windows printerdriver in Perl. I want to print to an GDI Printer under Windows. ciao Angelo BEGIN:VCARD VERSION:2.1 N:Bindi;Angelo;;Dipl.Ing. FN:Angelo Bindi ORG:IPMC TEL;WORK;VOICE:08291 / 790953 TEL;HOME;VOICE:08291 / 790953 TEL;CELL;VOICE:0178 / 8181801

Recurse folders and files?

2002-07-18 Thread Gerry Hickman
Hi, Does anyone know a good snippet of script to do this, or good place to look in the docs? I specifically need to recurse a tree structure and chmod lots of *.pl files. -- Gerry Hickman (London UK) ___ ActivePerl mailing list [EMAIL PROTECTED] To

RE: Recurse folders and files?

2002-07-18 Thread Larry R.
The File::Find module does fine for this. You define the function to make the chmod changes, and it is called for all files in a tree. I used to use the Recurse module also, but I think it is no longer supported. L -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On

Re: Recurse folders and files?

2002-07-18 Thread Gerry Hickman
The File::Find module does fine for this. You define the function to make the chmod changes, and it is called for all files in a tree. OK, I see it in the docs. Looks interesting. Thanks. -- Gerry Hickman (London UK) ___ ActivePerl mailing list