Win32::FileOp::OpenDialog with Tk

2003-04-04 Thread James Hooker
Problem: If I open an Win32::FileOp::OpenDialog from within a Tk window the OpenDialog leaves footprints all over my Tk Main window when it is moved over the main Tk window. I have tried binding the main Tk window with Events that would update its view such as , , to see if will get repainted. I

RE: input redirection question

2003-04-04 Thread Bernard Golden
Attache is my test code: while () { print "$_"; } I call it via C:>prac.pl < testone.txt The testone.txt file has three lines of text in it. The program runs and emits a single newline, but no text. It is as if it cannot recognize the input information. This is why I was wondering if there

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 {

RE: input redirection question

2003-04-04 Thread Kevin Horvatin
You shouldn't have to do anything at all --- if you post a simple program that you believe should work you will get more help. -Kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Eisengrein Sent: Friday, April 04, 2003 2:01 PM To: '[EMAIL PROTECTE

RE: input redirection question

2003-04-04 Thread Peter Eisengrein
Does it truly need to be redirected, or can you just use @ARGV ? -Original Message-From: Bernard Golden [mailto:[EMAIL PROTECTED]Sent: Friday, April 04, 2003 1:17 PMTo: [EMAIL PROTECTED]Subject: input redirection question I want to enable my program to read from STDIN v

RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
Thanks James, Tobias, Roger, and Randy, for your advice. In summary, creation of a "Formatter" object that acts upon a Table object seems to be the Right Thing to do. I will create an abstract base class "My::Table::Formatter" that is to be subclassed by My::Table::Formatter::HTML and other "plugi

input redirection question

2003-04-04 Thread Bernard Golden
I want to enable my program to read from STDIN via input redirection, e.g.:  myprogram < getstuff   When I try it on my machine the program does not see the input.  Is there something I should be configuring my machine with to enable it to see redirected input?  Many thanks.   Bernard Gold

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

2003-04-04 Thread Carl Jolley
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 { > my (@tiffFiles) = @_; > > my @z

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 11:28 AM > To: Tillman, James; Thomas, Mark - BLS CTR; > [EMAIL PROTECTED] > Subject: RE: Perl OO Question: subclass using parent object's methods, > not ove rridden methods? > > >

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> I think, perhaps, a little better description of > what you're > trying to accomplish with all this OOP might help others give > you better > advice. Maybe a high-level description of what's desired and > what made you try OO in the first place? OK, let me back up a little and give you some

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 10:42 AM > To: Tillman, James; Thomas, Mark - BLS CTR; > [EMAIL PROTECTED] > Subject: RE: Perl OO Question: subclass using parent object's methods, > not ove rridden methods? > >

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> It's necessary because by calling "bless" you are doing what > should have > been done in the missing object constructor I mentioned > above. You are > taking the reference and placing it in a different namespace (the > My::Table::HTML namespace). Once you've done that, calls to > the object

Another defining variables question.

2003-04-04 Thread Beckett Richard-qswi266
Hello World! I'm using Tk for a GUI, and I have a menu item that opens an instructions window. If I already have the instructions window opened somewhere, I want to bring it to the foreground, rather than opening another window. To this end, I can only see this way of doing it. First, near the

Re: HTML forms to a file

2003-04-04 Thread Cameron Dorey
Lawrence F. Durfee wrote: Cameron wrote: In the old days (literally, last year), installing a web server on Window$ WAS a big deal. But not anymore. ... download the latest >> Apache 2.0 server binary (2.0.44?) for Window$, ... Cameron, I am using a very capable Pentium based PC running Win2k

Re: counting files with a certain extension

2003-04-04 Thread Joe Youngquist
opendir(DIR, "path_to_/logon/input/") or die "\nCannot open Dir to read.\nError: $!"; my @contents = readdir DIR; closedir(DIR); my @log_files = grep (/\.log$/) @contents; foreach (@log_files) { rename("path_to_/login/inputs/$_", "path_to_/logon_logs/$_"); print "Moved: path_to_/login/inp

RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
Yes! In fact I have done just that, although I didn't call it Formatter. I like the name Formatter better, thanks for the idea. Currently it's just an empty namespace, as I don't have any common code (yet) to put in the base class. I do call it on the fly by exec()ing 'use $formatter_name'. But my

RE: Perl OO Question: subclass using parent object's methods, not overridden methods?

2003-04-04 Thread Thomas, Mark - BLS CTR
> At 04:15 PM 4/3/2003 -0500, Thomas, Mark - BLS CTR wrote: > >So my question boils down to this: Can I override methods > that act on > >the superclass' object, without having to instantiate a new object? > > And my question in response: Didn't my attached code accomplish that? Your code insta

Re: HTML forms to a file

2003-04-04 Thread Lawrence F. Durfee
Cameron wrote: >Date: Wed, 02 Apr 2003 14:56:38 -0600 >From: Cameron Dorey <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: HTML forms to a file > >Lawrence F. Durfee wrote: >> Cameron Dorey wrote: >> >>>Just have your form ACTION be a small perl script which writes your >>>input to a file.

RE: preventing IE windows from being grabbed by popups

2003-04-04 Thread JamesTillman
Click on IE's Tools->Internet Options menu option, which will bring up a dialog box.  in the "Advanced" tab, you will find a "Reuse windows for launching shortcuts" option.  (This used to be called "Browse in a new process", so depending on your IE version, it may vary).  Check this box, and

RE: Perl OO Question: subclass using parent object's methods, not ove rridden methods?

2003-04-04 Thread JamesTillman
> -Original Message- > From: Thomas, Mark - BLS CTR [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 3:01 PM > To: [EMAIL PROTECTED] > Subject: Perl OO Question: subclass using parent object's methods, not > ove rridden methods? > > > I have a module, let's call it My::Table, wh

Re: Bitmap on a Button, Bitmap not displaying

2003-04-04 Thread Johan Lindstrom
At 06:31 2003-04-04 -0500, Stuart Arnold wrote: It prints out that the $img and $bname are all ok,eg they exist and that $img has a value. I'm using ActiveState PERL 560. The window displays and shows a blank button. The bitmap is 20x20 and I've put the width/height to be 100,100 to see if thats

Re: Removing all \n in a text file.

2003-04-04 Thread Troy Tyson
If all you need to do is seperate the array with spaces, you could use the following code snippet: $" = ' '; print FILE "@array"; The $" variable is the list seperator special variable. This may be faster than doing the join. Troy - Original Message - From: "Daniel Gross" <[EMAIL PROTE

Bitmap on a Button, Bitmap not displaying

2003-04-04 Thread Stuart Arnold
Title: Message I've been trying to use Win32::GUI:Bitmap() and to no success. Here's the code sniplet:   ...mainwindow built before this...       my ($img, $btn, $bname);     $bname = "listbox.bmp";    print "bitmap is $bname\n";    if( -e $bname ) {    $img = new Win32::GUI::Bitmap(

OLE: preventing IE windows from being grabbed by popups

2003-04-04 Thread Thomas Drugeon
Hello,   I am controlling an IE windows with OLE, but surfing on the web in the same time cause this windows to be grabbed on every popup window. Is their a solution to prevent my IE windows from being kidnapped like this?   Thanks, Thomas