Re: Globbing

2005-04-15 Thread Roger Keane
andrew Black wrote: Roger Keane wrote: IMO: prefer File::Find with a regex instead of globbing if you just want to get the files from a directory tree. I think you are right here. But there are 2 (at least) different circumstances - want to write a filter that takes one or more file (maybe

Re: Globbing

2005-04-13 Thread Roger Keane
Rahul Chauhan wrote: andrew, if you are using paths, 1. escape the directory separator 2. and if the folder names have a space, use the dos 8.3 format. as in glob "C:\\Docume~1\\BlackA\\*.txt"; cheers, -Original Message- From: andrew Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 1

Re: Keyword search is dragging

2005-03-15 Thread Roger Keane
Craig Cardimon wrote: I'm searching large ASCII files for keywords. The keywords are part of section headings. These headings are in all caps on lines by themselves. The files sometimes contain HTML tags. My logic handles this well enough, but combs through the HTML very slowly. I'm dealing with

Re: Autoflush

2005-03-13 Thread Roger Keane
Lyle Kopnicky wrote: Well, it doesn't work for me. It's the same as not using it - I get no output in my log file. Not very useful. :( As $Bill often says... need ... more ... code! Do you have a short example that demonstrates your problem? ___ Perl

Re: simple if?

2005-03-05 Thread Roger Keane
3.84 usr + 0.00 sys = 3.84 CPU) @ 1300728.41/s (n=500) RE: 4 wallclock secs ( 2.62 usr + 0.00 sys = 2.62 CPU) @ 1905487.80/s (n=500) Rate OR RE HL OR 1300728/s -- -32% -88% RE 1905488/s 46% -- -83% HL 1103

Re: Easy way of using module Env, platform independent?

2004-11-05 Thread Roger Keane
[EMAIL PROTECTED] wrote: # Hi, # Question. Easy way of using module Env, platform independent. # Want to do the following: (example) # 1. get the PATH environment variable # 2. change it to add an additional search path # 3. put back the modified PATH # 4. execute a program/script using the system

Re: fork didn't work

2004-11-02 Thread Roger Keane
Jutu Subramanian, Srinivasan (Cognizant) wrote: > > Hi, > I need to execute a perl application from one perl application. > I should do with fork and exec. The execution of another one perl application is the independent > to the parent process.So, I don't want to use wind32::CreateProcess. Using

Re: win32/linux socket communication. (it just wont talk)

2004-01-09 Thread Roger Keane
Jeremy A wrote: > Hello all, > > i am beginning to find linux/windows socket communication just drives me > crazy! i'll have to visit the funny farm, lol ! For a good example of socket programming with plenty of discussion, see chapter 13 of Advanced Perl Programming: http://www.amazon.com/ex

Re: What is wrong here (finding zero sized file )...

2003-04-04 Thread Roger Keane
Carl Jolley wrote: > On Thu, 3 Apr 2003, Daniel Gross wrote: > > > Hello, > > > > I am trying to find all files that have zero size, but it doesn't work > > -- why? > > > > > > my @tmpArray = glob("$dirName/*.tif"); > > my @zeroFiles = getZeroSizeTiffs(@tmpArray); > > > > sub getZeroSizeTiffs {