Re: Problem with unlink and "/" pathname separator on Windows XP

2004-11-18 Thread $Bill Luebkert
colin_e wrote: > $Bill Luebkert wrote: > >> >> >>That's because you didn't close $command before trying to delete >>the temp files. DIR still has them open for write and unlike >>UNIX, Doze can't delete files that are in use. >> >> >> > Thx Bill. (also thanks to Howard Tanner for a similar sug

RE: Problem in running macro on the right excel sheet.

2004-11-18 Thread Jarvis, John
I believe this is the code that will put the focus on sheet 2      my $sheet = $Book->Worksheets("Sheet2").Activate HTH -John -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]Sent: Thursday, November 18, 2004 9:15 AMTo: [EM

RE: ActivePerl Digest, Vol 10, Issue 27

2004-11-18 Thread Leroy G. Blimegger Jr.
  > Date: Thu, 18 Nov 2004 17:14:54 - > From: <[EMAIL PROTECTED]> > Subject: Problem in running macro on the right excel sheet. > To: <[EMAIL PROTECTED]> > Message-ID: >     <[EMAIL PROTECTED] > ukdy.domain1.systemhost.net> > > Content-Type: text/plain; charset="us-ascii" >

RE: Working with very large text files

2004-11-18 Thread DePriest, Jason R.
On Thursday, November 18, 2004 2:23 PM, Craig Cardimon wrote > Tie::File is great and it functions, but not if you don't want to > change the source file. In my project, I have to create a new smaller > document by extracting data from a larger original document. The > original document, however,

Re: Working with very large text files

2004-11-18 Thread colin_e
Jason, You are indeed slurping the whole file into memory with the @logFile = construct. If you know your logs are big, and you don't need to do arbitrary seeking around inside the file, don't do it this way. Line-based processing, as in... open(LOGFILE," while() {

RE: Working with very large text files

2004-11-18 Thread Arms, Mike
Craig Cardimon [cardimon AT knowledgeexpress DOT com] wrote: > > I, too, am working with some awfully huge text files, some of > which are plain text and some of which are HTML tagged. Here's > how I start: > > # I assign a filehandle to file > open(IN, "$filename"); > > # I 'slurp' in the file

Re: Problem with unlink and "/" pathname separator on Windows XP

2004-11-18 Thread colin_e
$Bill Luebkert wrote: That's because you didn't close $command before trying to delete the temp files. DIR still has them open for write and unlike UNIX, Doze can't delete files that are in use. Thx Bill. (also thanks to Howard Tanner for a similar suggestion) I understand what you'r

Re: Help - PPM will not install Audio-Wav

2004-11-18 Thread Randy Kobes
On Thu, 18 Nov 2004, Don Osburn wrote: > I can not get ppm to install Audio-Wav. When I run > ppm> describe Audio-Wav > I get the following response. > > == > Name: Audio-Wav > Version: 0.02 >Author: Nick Peskett >

RE: Working with very large text files

2004-11-18 Thread Gardner, Sam
Title: RE: Working with very large text files Additionally, I believe if you do: $|=undef; It sets the buffer to autoflush -- otherwise you may see your program processing the entire file before printing anything out, which could be frustrating. . . As with setting any of these variables,

Re: Working with very large text files

2004-11-18 Thread Craig Cardimon
Tie::File is great and it functions, but not if you don't want to change the source file. In my project, I have to create a new smaller document by extracting data from a larger original document. The original document, however, has to be left intact for future reference. michael higgins wrote:

Re: Working with very large text files

2004-11-18 Thread $Bill Luebkert
DePriest, Jason R. wrote: > I have a perl script that I use to parse a month's worth of Cisco PIX > Firewall logs sent to a syslog server. > > The raw text file is always over 300 MB and typically closer to 750 MB > or higher. > > Opening a regular file handle (eg open(LOGFILE," beating the syst

Re: Working with very large text files

2004-11-18 Thread michael higgins
DePriest, Jason R. wrote: I have a perl script that I use to parse a month's worth of Cisco PIX Firewall logs sent to a syslog server. The raw text file is always over 300 MB and typically closer to 750 MB or higher. Opening a regular file handle (eg open(LOGFILE," It looked very much like perl was

RE: Working with very large text files

2004-11-18 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > I have a perl script that I use to parse a month's worth of Cisco PIX > Firewall logs sent to a syslog server. > > The raw text file is always over 300 MB and typically closer to 750 MB > or higher. > > Opening a regular file handle (eg open(LOGFILE," beating the system

Re: Working with very large text files

2004-11-18 Thread Craig Cardimon
I, too, am working with some awfully huge text files, some of which are plain text and some of which are HTML tagged. Here's how I start: # I assign a filehandle to file open(IN, "$filename"); # I 'slurp' in the file into one variable { local $/; $wholefile = ; } # I close the fil

Working with very large text files

2004-11-18 Thread DePriest, Jason R.
I have a perl script that I use to parse a month's worth of Cisco PIX Firewall logs sent to a syslog server. The raw text file is always over 300 MB and typically closer to 750 MB or higher. Opening a regular file handle (eg open(LOGFILE,"; close(LOGFILE); did not help the memory usage either.

Help - PPM will not install Audio-Wav

2004-11-18 Thread Don Osburn
I can not get ppm to install Audio-Wav.  When I run   ppm> describe Audio-Wav   I get the following response.   ==     Name: Audio-Wav   Version:  0.02    Author: Nick Peskett    Title: Audio-Wav     Location: ActiveState Pac

RE: Re: Problem with unlink and "/" pathname separator on Windows XP

2004-11-18 Thread Howard Tanner
See perldoc FileHandle. Methinks FileHandle is keeping the files open. Try adding: $command->close; or undef $command; after instantiating the FileHandle. Either should close the files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of colin_e Sent: Thu

Re: Problem with unlink and "/" pathname separator on Windows XP

2004-11-18 Thread $Bill Luebkert
colin_e wrote: > "$Bill Luebkert" wrote- > > >>I'm not comvinced. You're probably doing something else wrong. > > > Petr Vileta wrote- > > >>Try: >>unlink("\"C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt\""); > > > > > You are right to be suspicious, but it's taken m

RE: Problem in running macro on the right excel sheet.

2004-11-18 Thread Brian Raven
[EMAIL PROTECTED] wrote: > Hi All, > > I'm trying to run a macro on an excel. > There are several sheets in the excel (sheet1, sheet2, sheet3,..etc.) > The excel is saved as its focus on sheet1. > I try to run macro on sheet 2. > So I write the code like this.. > > use strict; > use Win32::OLE qw

Re: Re: Problem with unlink and "/" pathname separator on Windows XP

2004-11-18 Thread colin_e
"$Bill Luebkert" wrote- I'm not comvinced. You're probably doing something else wrong. Petr Vileta wrote- Try: unlink("\"C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt\""); You are right to be suspicious, but it's taken me several hours of head-scratching to nail this down. It's

Problem in running macro on the right excel sheet.

2004-11-18 Thread sharma.tarun
  Hi All,   I’m trying to run a macro on an excel. There are several sheets in the excel (sheet1, sheet2, sheet3,..etc.) The excel is saved as its focus on sheet1. I try to run macro on sheet 2. So I write the code like this..   use strict; use Win32::OLE qw(in with); use Win32::

Re: Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread $Bill Luebkert
Petr Vileta wrote: >>>Try: >>> > > unlink("\"C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt\" > >>>"); >> >>Shouldn't make any difference since there are no chars that need escaping. >> >>Try running this and post result : > > I'm not sure if Perl under Windows accept two dots

Re: Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread Petr Vileta
> > Try: > > unlink("\"C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt\" > > "); > > Shouldn't make any difference since there are no chars that need escaping. > > Try running this and post result : I'm not sure if Perl under Windows accept two dots in filename in unlink() function

Re: Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread $Bill Luebkert
Petr Vileta wrote: >>However I've hit a weird problem on ActiveState perl 5.8.3 on XP. If I >>put temp files in >>the default Windows personal temp directory, I end up with pathnames like- >> >>C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt >> >>Now I can create this path

Re: Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread Petr Vileta
> However I've hit a weird problem on ActiveState perl 5.8.3 on XP. If I > put temp files in > the default Windows personal temp directory, I end up with pathnames like- > > C:/DOCUME~1/colin/LOCALS~1/Temp/Test_Schedule_1.000_OUT_3780.txt > > Now I can create this pathname quite happily wit

Re: Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread $Bill Luebkert
colin_e wrote: > Perl: v5.8.3 MSWin32-x86-multi-thread > OS: Windows XP SP1 > > > Solaris is my production platform, but I mostly develop on my home PC > for convenience. > Perl's cross-platform compatibility is generally very good, but i've hit > an odd path problem- > > Although the Windows

Problem with unlink and "/" pathname separator in on Windows XP

2004-11-18 Thread colin_e
Perl: v5.8.3 MSWin32-x86-multi-thread OS: Windows XP SP1 Solaris is my production platform, but I mostly develop on my home PC for convenience. Perl's cross-platform compatibility is generally very good, but i've hit an odd path problem- Although the Windows command shells use "\" as a path sepa