Re: File Copy Question

2000-05-05 Thread $Bill Luebkert
Mike Reilley wrote: > > Hi all, > Can some one point me in the direction to do file copies from with in a > PERL program?? > I am using 5.6 on win/98 5.6 on win/95 > must be able to handle windows LFN Duh ... Maybe standard module File::Copy ??? -- ,-/- __ _ _ $Bill Luebkert

Building a PM Repository

2000-05-05 Thread Mike Reilley
Hi All, Looking for information on building a perl module repository locally that I can use to store my PM's in ?? Would like to be able to get them locally and not have to use the net. TIA [EMAIL PROTECTED] --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscrib

File Copy Question

2000-05-05 Thread Mike Reilley
Hi all, Can some one point me in the direction to do file copies from with in a PERL program?? I am using 5.6 on win/98 5.6 on win/95 must be able to handle windows LFN TIA [EMAIL PROTECTED] --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubscribe, forward this

Re: Finding and replacing a UNICODE string.

2000-05-05 Thread Ned Konz
[EMAIL PROTECTED] wrote: > > I read in the docs that Unicode was limited in perl. I would like to search > for and replace a Unicode (2 byte) string in a file. If I want to simply > print out each line in a Unicode file the following works just fine. > > $filename = "file.unicode"; > open(FILE,

Re: PHP and Perl

2000-05-05 Thread Robert White
From: "Oliver Schleede" <[EMAIL PROTECTED]> > yes, i've forgotten to mention that there's lot of arrogance among the > enlighted perl folks. Please do not confuse arrogance with frustration. David said it better so I'll just give an example from a couple of weeks ago. Someone posted this questio

Re: Communicating between Perl/Tk and child processes

2000-05-05 Thread Dieter Gobbers
On 01/07/00, ""Melissa Matthews" <[EMAIL PROTECTED]>" wrote: > I am using Perl/Tk on a win32 platform. We would like to be able to > execute a second perl script and get progress statements back from it as > it is running that can be displayed in the Tk interface. We tried > (unsuccessfully) to

Re: Running Perl Scripts on Windows

2000-05-05 Thread Amer Neely
On 05/05/00, ""Charlie Delingpole" <[EMAIL PROTECTED]>" wrote: > How do I get my perl scripts to run clientside - i.e on my windows 98 pc, but not through the command line, i.e through internet explorer? Thanks in advance [EMAIL PROTECTED] (acknowledged - lamer question) Your first task is to

RE: PHP and Perl

2000-05-05 Thread Ranga
I much admire your attitude David. From my point of view I should be thankful for the assistance rendered by everyone much more so by Gurus. If they get angry, that is OK. I am ever so thankful for pointers and solutions. If most of us seek only directions and are prepared to do a little hardw

Finding and replacing a UNICODE string.

2000-05-05 Thread kevin . burton
I read in the docs that Unicode was limited in perl. I would like to search for and replace a Unicode (2 byte) string in a file. If I want to simply print out each line in a Unicode file the following works just fine. $filename = "file.unicode"; open(FILE, $filename) or die "Can't open '$filename

RE: PHP and Perl

2000-05-05 Thread Cassell . David
> mostly in reply to David, I'm flattered. :-) > yes, i've forgotten to mention that there's lot of arrogance among the > enlighted perl folks. another good reason to rather seek a simple than a > correct way out of a perl problem. Pretty much as I tried to point out. But the Perl wizards s

Re: Object DB Persistence (was Re: PHP and Perl)

2000-05-05 Thread Ranga
I also remember an article that Lincoln Stein wrote in TPJ last year on an OO database that he uses in teh Genome project. On 5 May 00, at 15:37, Michael Graham wrote: Date sent: Fri, 05 May 2000 15:37:19 -0400 To: "Perl-Win32-Users Mailing List" <[EMAIL PROTE

RE: PHP and Perl

2000-05-05 Thread Ranga
I have a similar experience with IIS/ASP/VbScript. After a long way into the project, I regret using VbScript. The Pain 2 Gain ratio was high and I lost interest in a klunky language that made even reading a file or creating a hash ever so difficult. That was when I started looking at PHP bec

Re: Word OLE problem

2000-05-05 Thread Jan Dubois
On Fri, 5 May 2000 11:14:25 +0200, "Thomas Zapf-Schramm" <[EMAIL PROTECTED]> wrote: >But why should "undef" make a difference at all? As far as I understand the >scope of "my $aktDok" should be within the "{ }" of the while loop. Doesn't >this mean that its reference count goes down to zero and i

Running Perl Scripts on Windows

2000-05-05 Thread Charlie Delingpole
How do I get my perl scripts to run clientside - i.e on my windows 98 pc, but not through the command line, i.e through internet explorer? Thanks in advance [EMAIL PROTECTED] (acknowledged - lamer question) --- You are currently subscribed to perl-win32-users as: [archive@jab.org] To unsubsc

Re: Object DB Persistence (was Re: PHP and Perl)

2000-05-05 Thread Ned Konz
Michael Graham wrote: > You might have a look at Tangram (http://www.tangram-persistence.org/), > which is a set of Perl modules which implements object persistence in > relational databases. However, it looks to be very complicated too. > However once you've learned the basics it should make da

RE: Excel File Help Please

2000-05-05 Thread Wantock, Ron L.
If it's going to be a script that will be used by many people as a utility, it may be worth while to automate it with OLE, but if it is a one shot deal, or if you are the only one that will be running it, you'd probably be better off saving the spreadsheet as a tab or comma delimited text file and

Re: Excel File Help Please

2000-05-05 Thread Ned Konz
Scott K Purcell wrote: > > Hello, > I was just handed an "excel" file, and was told to parse it. I have never > used any of the Ole stuff, and I don't know if I should use that, or just > treat it as a "flat file".? I am for the most part a web guy. Look at DBI::CSV if you want to handle this as

Object DB Persistence (was Re: PHP and Perl)

2000-05-05 Thread Michael Graham
At 12:01 PM 05/05/2000 -0700, Ned Konz wrote: >[1] I've long regarded relational databases as merely an awkward way to >make objects >persistent, so I have a bit of a different slant than many people using >databases >(for whom the database is of primary interest). You might have a look at Tangr

RE: PHP and Perl

2000-05-05 Thread Michael Graham
At 07:25 AM 05/05/2000, Oliver Schleede wrote: >so, still i can't share your point. Oliver, I'm not trying to convince you to stop using PHP. Use what you need to get your job done. What I *am* trying to do is to convince the people who might be swayed by your success stories. And I'm also t

Re: XML::Parser Ver. 2.28

2000-05-05 Thread Amer Neely
On 04/03/00, "Charles Cantrell <[EMAIL PROTECTED]>" wrote: > I downloaded XML::Parser 2.27 and got it installed and running. However, > that may have been a fluke. > > I have not been able to get version 2.28 to install and run. Fortunately, I > save the previous version, and can still run on the

RE: COBOL Interface

2000-05-05 Thread Joseph P. Discenza
Ewen, Ed wrote, on Friday, May 05, 2000 11:40 : I am putting together a list of reasons why we should use Perl at my : office, and wanted to know if Perl can interface with COBOL : programs. Any : information will be appreciated. Depends what you mean by "interface with". A quick search of CPA

Excel File Help Please

2000-05-05 Thread Scott K Purcell
Hello, I was just handed an "excel" file, and was told to parse it. I have never used any of the Ole stuff, and I don't know if I should use that, or just treat it as a "flat file".? I am for the most part a web guy. Anyway, the file looks like (eg of 4 lines out of about 1000 lines). dept nu

RE: PHP and Perl

2000-05-05 Thread Michael Graham
At 07:25 AM 05/05/2000, Oliver Schleede wrote: >btw you mentioned that some db-stuff will change in a year - i guess php is >well maintained and workarounds will be available, for php3 is found in too >many db web projects. No, what I meant was next year *you* might change *your* database from

Re: reading gzip files transparently - Thanks

2000-05-05 Thread Ned Konz
[EMAIL PROTECTED] wrote: > > Awesome. Thanks everyone. I should have asked this question > months ago! I was shelling out to 'unzip' to convert to text and so > on. While this is implicit shelling too, it is elegant. Thanks folks. Look at Compress::Zlib for a solution that isn't shelling. Also,

Re: PHP and Perl

2000-05-05 Thread Ned Konz
[EMAIL PROTECTED] wrote: >And finally, there is really no reason why someone [maybe even > someone named Michael] can't set up a better-than-PHP system to > show others. Apache with mod_perl and CGI.pm and DBI and DBD::MySQL > all loaded already, with clear examples as in Lincoln Stein's > C

RE: PHP and Perl

2000-05-05 Thread Michael Graham
At 09:42 AM 05/05/2000 -0700, [EMAIL PROTECTED] wrote: > And finally, there is really no reason why someone [maybe even >someone named Michael] can't set up a better-than-PHP system to >show others. Apache with mod_perl and CGI.pm and DBI and DBD::MySQL >all loaded already, with clear examples

Re: reading gzip files transparently

2000-05-05 Thread Ned Konz
[EMAIL PROTECTED] wrote: > > I was going to store all the HTML files that I dynamically generate > in gzip format. That is fine as IE will accept gzip. However I realized > that my site search would stop working as it cant read gzip files > unless it is gunzipped. Or is there a module that will m

Re: reading gzip files transparently

2000-05-05 Thread Lyndon Rickards
[EMAIL PROTECTED] wrote: > > I was going to store all the HTML files that I dynamically generate > in gzip format. That is fine as IE will accept gzip. However I realized > that my site search would stop working as it cant read gzip files > unless it is gunzipped. Or is there a module that will

RE: HOWTO Parse a string.

2000-05-05 Thread Joseph P. Discenza
[EMAIL PROTECTED] wrote, on Friday, May 05, 2000 13:57 : D:\Program Files\Microsoft Visual : Studio\Common\IDE\IDE98\devenv.exe : "%1" : : I would like to extract just the first part of the string (the path), : dropping the argument ("%1"). Any ideas on how I can parse it? You could split

RE: simple email question

2000-05-05 Thread Ewen, Ed
This worked for me: $ActiveSession = CreateObject OLE "MAPI.session" || die "CreateObject: $!"; $LogonName = "Microsoft Outlook"; die "Logon: $!" if $ActiveSession->Logon($LogonName, $LogonPasswd); # Logon returns 0 on success $Message->Logoff(); sub send_email { $M

COBOL Interface

2000-05-05 Thread Ewen, Ed
Hi all, I am putting together a list of reasons why we should use Perl at my office, and wanted to know if Perl can interface with COBOL programs. Any information will be appreciated. TIA Ed Ewen (404) 575-3531 [EMAIL PROTECTED] ---

Re: Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 05 May 2000 13:40:03 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> > wrote: > > >Here's the beginning of package Java::Class: > > > >> package Java::Class; > >> > >> use Java::ClassFile qw(:visibility); > >> > >> $VERSION = '0.01'; > >> > > > >and the method that uses

Re: reading gzip files transparently - Thanks

2000-05-05 Thread Ranga
Awesome. Thanks everyone. I should have asked this question months ago! I was shelling out to 'unzip' to convert to text and so on. While this is implicit shelling too, it is elegant. Thanks folks. On 5 May 00, at 19:23, Philip Newton wrote: From: Philip Newton <[EMAIL PROTEC

RE: PHP and Perl

2000-05-05 Thread Oliver Schleede
mostly in reply to David, yes, i've forgotten to mention that there's lot of arrogance among the enlighted perl folks. another good reason to rather seek a simple than a correct way out of a perl problem. but, lucky me, i solve my perl problems with problematic perl and php3 patchworking, so n

Help please: I want to send myself an email with (or without) Net ::SMTP::Server from an NT 4 workstation

2000-05-05 Thread Charles . Boyce
I want to send myself an email with (or without) Net::SMTP::Server from an NT 4 workstation. I have the module (and it's dependent modules installed, but I can't get it to work Info about Net::SMTP::Server is located at http://www.macgyver.org/software/perl/ Your h

Re: HOWTO Parse a string.

2000-05-05 Thread Justin Rogers
{ local $_ = 'D:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe "%1"'; /^(.+?)\"/; print $1; } Would that work? I'm just guessing here. Perl Newbie at best. - Justin Rogers, CEO DigiTec Web Consultants [COOP]DigiTec - Half-Life, Q3A, Unreal Tournament - O

Re: HOWTO Parse a string.

2000-05-05 Thread Justin Rogers
{ local $_ = 'D:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe "%1"'; /^(.+?)\"/; print $1; } Would that work? I'm just guessing here. Perl Newbie at best. - Justin Rogers, CEO DigiTec Web Consultants [COOP]DigiTec - Half-Life, Q3A, Unreal Tournament - O

RE: HOWTO Parse a string.

2000-05-05 Thread Ewen, Ed
Use split Ed Ewen (404) 575-3531 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Friday, May 05, 2000 1:57 PM To: Perl-Win32-Users Mailing List

Re: Importing subroutines from one package to another

2000-05-05 Thread Jan Dubois
On Fri, 05 May 2000 13:40:03 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> wrote: >Here's the beginning of package Java::Class: > >> package Java::Class; >> >> use Java::ClassFile qw(:visibility); >> >> $VERSION = '0.01'; >> > >and the method that uses the accXXX subroutines: > >> sub Dump >> {

HOWTO Parse a string.

2000-05-05 Thread kevin . burton
I have a string that I cannot seem to see how to parse. I get it from the Win32 registry. It looks like: D:\Program Files\Microsoft Visual Studio\Common\IDE\IDE98\devenv.exe "%1" I would like to extract just the first part of the string (the path), dropping the argument ("%1"). Any ideas

Re: Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Jan Dubois wrote: > > On Fri, 05 May 2000 11:58:45 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> > wrote: > > >if I add a 'use Java::ClassFile qw(:visibility)' to a regular script, I > >am able to access accPublic, accProtected and accPrivate without any > >problems. > > > >However, trying the sam

Re: INSTALL: How do I remove all traces of ActivePerl?

2000-05-05 Thread Jan Dubois
On Fri, 5 May 2000 11:53:30 +0200, [EMAIL PROTECTED] wrote: >- At last I tried to install AP518. The installation succeeds, but running > a script fails with: "Perl lib version (5.00307) doesn't match executable > version (5.00503)" This indicates you still have build 3xx (Perl for Win32) some

Re: reading gzip files transparently

2000-05-05 Thread Jan Dubois
On Fri, 5 May 2000 12:27:10 -0400, [EMAIL PROTECTED] wrote: >I was going to store all the HTML files that I dynamically generate >in gzip format. That is fine as IE will accept gzip. However I realized >that my site search would stop working as it cant read gzip files >unless it is gunzipped.

Re: Importing subroutines from one package to another

2000-05-05 Thread Jan Dubois
On Fri, 05 May 2000 11:58:45 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]> wrote: >if I add a 'use Java::ClassFile qw(:visibility)' to a regular script, I >am able to access accPublic, accProtected and accPrivate without any >problems. > >However, trying the same within another package fails. If I

Re: reading gzip files transparently

2000-05-05 Thread Philip Newton
[EMAIL PROTECTED] wrote: > Or is there a module that will make the gzip > file appear as an unzipped text file? Like a file handle or > something...so I just need to declare the file handle and use it for > reading... There's an example in perlop. Look in the section on "I/O Operators" for an

RE: PHP and Perl

2000-05-05 Thread Cassell . David
Michael, You raised some good points. But the Perl people already like Perl, and the PHP people prefer something simple instead of powerful - so you are unlikely to get too many converts. :-) You have a valid issue in reagrd to the aparent easiness of beginning on the web in Perl. But I

reading gzip files transparently

2000-05-05 Thread Ranga
I was going to store all the HTML files that I dynamically generate in gzip format. That is fine as IE will accept gzip. However I realized that my site search would stop working as it cant read gzip files unless it is gunzipped. Or is there a module that will make the gzip file appear as an u

Importing subroutines from one package to another

2000-05-05 Thread Ian D. Stewart
Howdy folks, I'm struggling with Exporter, and am hoping someone can shed some light... I have the a package that starts like so: package Java::ClassFile; require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw(accPublic accProtected accPrivate accStatic accFinal accSynchronized

Re: Help plz : Can't install Active Perl 522 on my WinNT

2000-05-05 Thread Michael Appelmans
Tibor... I am having the same problem installing 613 on W2K. I tried running msiexec from command line per your suggestion but just get a flash of "preparing to install" and then back to command line. Any other suggestions? Is there a way to "unzip" and make manual registry entries? Thanks f

perl-win32-users@lyris.activestate.com

2000-05-05 Thread Joe Schell
So far no one has been able to point me to a source of an ODBC driver that will run on unix and access a MS Access database without using a proxy server. Are you suggesting the use of a proxy server or do you have a source for a Unix ODBC driver for MS Access? > Behalf Of [EMAIL PROTECTED] > > >

perl-win32-users@lyris.activestate.com

2000-05-05 Thread Ranga
There should be many ways. DBI:ODBC to use an ODBC client on the HP to update the Access on the NT. Or create a CSV (comma delimited ascii) or XML On 5 May 00, at 15:42, bruno stefanutti wrote: Date sent: Fri, 05 May 2000 15:42:19 +0200 From: bruno stefanutti <[

Re: Thumnailing pictures

2000-05-05 Thread Robert Davis
Andy Blyler wrote: > Anyone now a quick and easy way to shrink a picture to about 1/3 of its > origonal size so that it can be indexed? > > Andy Blyler > > --- > You are currently subscribed to perl-win32-users as: [EMAIL PROTECTED] > To unsubscribe, forward this message to > [EMAIL PR

Re: Perl and OLE/COM

2000-05-05 Thread Jan Dubois
On Fri, 05 May 2000 18:32:14 +0400, Mike Blazer <[EMAIL PROTECTED]> wrote: Hi Mike, >Jan, I just tried to compile Win32::OLE-0.12 with Borland 5.02 for old GSAR port - >unfortunatelly it failed: > >Warning OLE.xs 466: Functions containing while are not expanded inline >Error OLE.xs 5286: Call t

perl-win32-users@lyris.activestate.com

2000-05-05 Thread Joe Schell
See http://tlowery.hypermart.net/perl_dbi_dbd_faq.html > Behalf Of bruno stefanutti > > > Hi to all. > I work in perl under NT 4.0 with dbi/odbc modules and I'm able to > selct/insert/update.. Microsoft Access database on Nt and Informix > database on Unix via dbi/odbc modules. > > Now I have

Re: PDK 2.0

2000-05-05 Thread Jan Dubois
On Fri, 5 May 2000 6:30:29, "Rick Dalgren" <[EMAIL PROTECTED]> wrote: >Anyone know when PDK 2.0 is going to be released?? There is a plan to have a beta out sometime next week and the release a few weeks later, depending on feedback / remaining bugs etc. But plans have failed before, so take th

RE: PHP and Perl

2000-05-05 Thread Oliver Schleede
i do agree. yes, it is no question witch of the two is more powerful, multipurpose and so on. but in all your lines i read aversion against php in general. just count the number of programmers switching over from php to perl because first steps in php were so much easier. i was an so where some

perl-win32-users@lyris.activestate.com

2000-05-05 Thread bruno stefanutti
Hi to all. I work in perl under NT 4.0 with dbi/odbc modules and I'm able to selct/insert/update.. Microsoft Access database on Nt and Informix database on Unix via dbi/odbc modules. Now I have another goal; in fact I have installed perl over a HP UNIX machine and I need to insert text data from

newbie questions about fork()

2000-05-05 Thread Pedro Figueiredo
i have this script (to learn about fork... a simple chat server) #!/usr/bin/perl -w use IO::Socket; use Net::hostent; # for OO version of gethostbyaddr $PORT = 9000; # pick something not in use use IO::Handle; # thousands of lines just for autoflush :-( pipe

PDK 2.0

2000-05-05 Thread Rick Dalgren
Anyone know when PDK 2.0 is going to be released?? --- 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]

INSTALL: How do I remove all traces of ActivePerl?

2000-05-05 Thread Niels . S . Olsen/CPH
Hello list, After a failed installation of AP613, installation of an earlier release fails. Installing AP522 fails. Installing AP518 succeeds, but running Perl programs fails with a library version mismatch. How can I remove all traces of ActivePerl from my system, beore installing again? I am

Re: CGI.pm and Uploading

2000-05-05 Thread Philip Newton
Carl Jolley wrote: > To cover all the bases ypu might want to consider: > my @info=split/[\\/:]/, $file); And hope you don't get any VMS-style paths :-). (AFAIK, they look like LOGICAL:[DIR.DIR.DIR]FILENAME.EXT;VERSION , though I've never used VMS myself.) But there're probably a lot more peopl

Re: Thumnailing pictures

2000-05-05 Thread Soren Andersen
On 05/04/00, "Joe Kline <[EMAIL PROTECTED]>" wrote: > Andy Blyler wrote: > > > > Anyone now a quick and easy way to shrink a picture to about 1/3 of its > > origonal size so that it can be indexed? > > Take a look at Randal's Web Technique article: > > http://www.stonehenge.com/merlyn/WebTechni

RE: Word OLE problem

2000-05-05 Thread Thomas Zapf-Schramm
I tried this before. It didn't change anything. The utility "Free Meter" shows me that 81% of 128 MB physical memory are used after the crash. System ressources are at about 81%. But why should "undef" make a difference at all? As far as I understand the scope of "my $aktDok" should be within the

Re: Problem in CGI script

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Chad Tower wrote: > > Hi... been doing perl a long time, new to CGI. I'm trying to do > something very simple here... take a simple form input via POST and > print the results out to the browser. The code works when I use GET, > but when I use POST it never gets through the

Re: Clipboard

2000-05-05 Thread Aldo Calpini
Stephen Roylance wrote: > use strict; > use Win32::OLE; > use Win32::OLE::Const 'Microsoft Word'; > use Win32::Clipboard > > my $Word = Win32::OLE->new('Word.Application'); > $Clip = Win32::Clipboard(); > $Clip->Set("C:\\temp"); you're missing a semicolon after 'use Win32::Clipboard' chee

How do I get a list of available printer and screen fonts?

2000-05-05 Thread Tenny Hasegawa
Hi Perl gurus... I am looking for a way to get a list of the available printer and screen fonts for a session. Is there a perl function that will do this? This would be preferable since I am programming for both the windows 95 and Unix environments. If not, how do I get at this through the w

RE: PHP and Perl

2000-05-05 Thread Michael Graham
At 02:17 PM 04/05/2000, Oliver Schleede wrote: >i'm sure there are a lot out there with not the slightest idea why their >perl script don't work because the documentation only serves the already >knowing. The Perl docs are tough on newbies, yes. But so are the PHP docs. Quick: how do you te

Re: Case Statement?

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Scott K Purcell wrote: > hello, > I am sorry to ask, but I can't seem to find this kind of statement in my > book or in the documentation. > > $text = defined($ARGV[0]) ? $ARGV[0] : "Hello world"; > > PS, the end makes sense, that if there is a $ARGV[0] being passed to use

Re: Seconds to Formatted Time

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, stanley g martin wrote: > I hate to attempt to recreate the wheel, but has anyone written a sub > that will convert a given number of seconds to hours, minutes, seconds? > How about: sub hhmmss{ my $seconds=$_[0]; my $hours=int($seconds/3600); my $minutes=int(($second

Re: Win32::OLE under Win95

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Jim Powers wrote: > I'm using the latest version of ActiveState perl under Windows 95. > I am trying to print a Word 97 document as follows: > > $use Win32::OLE; > $wd = Win32::OLE->GetObject("C:\\Hello.doc") or die "GetObject failed"; > $wd->printOut; > > This works fine un

Word OLE problem again

2000-05-05 Thread Thomas Zapf-Schramm
I'm sorry for trying it again. But doesn't anybody have an idea why Word freezes in the sample program below? This program obviously does nothing useful. It is just a test program that isolates the basic problem of a bigger program that processes all words in some hundred files (The original prog

Re: Word OLE problem

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Thomas Zapf-Schramm wrote: > Can anybody tell me, why this script freezes after 70 iterations of the > outer loop? > > > use Win32::OLE qw(in with); > use Win32::OLE::Const 'Microsoft Word'; > > my $appWD=Win32::OLE->new('Word.Application', 'Quit') > or die "Oops, c

Re: CGI.pm and Uploading

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Troy Sniff wrote: > I'm trying to grab the original name of the file using CGI.pm to upload. > > Here is what I am doing: > > my @nfn = split (/\\/, $file); > $NewFileName = pop @nfn; > > where $file is the full path to the file. > > This process will only be done using a

Re: leading and trailing spaces

2000-05-05 Thread Carl Jolley
On Thu, 4 May 2000, Bill Stennett wrote: > Hi all > > sorry for this probably very basic question but i'd appreciate a little > help! > > I need to remove spaces from user input at the start and end of the string. > I can use: > >$varname=3D~s/^\s+(.*)/$1/;# remove leading spaces > >