Re: Win32::GUI crashing, burning -- fixed!

2003-10-08 Thread Eric Hillman
Tobias Hoellrich wrote: > Try naming all your gui-objects and it'll do wonders: > > $main->AddLabel(-text => $text, -name => "foobar"); > > HTH > Tobias Yay! Thanks a million. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: h

RE: Win32::GUI crashing, burning.

2003-10-08 Thread Tobias Hoellrich
Try naming all your gui-objects and it'll do wonders: $main->AddLabel(-text => $text, -name => "foobar"); HTH Tobias > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Eric Hillman > Sent: Wednesday, October 08, 2003 4:56 PM > To: Perl-Wi

Win32::GUI crashing, burning.

2003-10-08 Thread Eric Hillman
Weird problem here... I've been trying to move to Win32::GUI from Tk, and I can't even get as far as "Hello World" without perl crashing with a "Perl.exe generated errors and will be closed by Windows" Dr. Watson popup. The error I'm getting happens when I try to add pretty much any widget. For e

Re: could not ODBC Sam-Test ...

2003-10-08 Thread Eric Promislow
For those who found the earlier response hard to read due to raw HTML, the quick answer is that you've specified that the directory is 'c:\ab' by using double-quotes. Change $Dir = "c:\temp"; to $Dir = 'c:\temp'; so Perl won't treat the '\' as an escape character. - Eric "Blame me for having

Re: newline...be gone

2003-10-08 Thread Joe Youngquist
your 'newline' character might be chr(13) so a chop might do better for you or my $newline = chr(13); $line =~ s/$newline//; ... HTH JY - Original Message - From: "David Byrne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 3:08 PM Subject: newline...

RE: [SPAM] newline...be gone

2003-10-08 Thread Craig Cardimon
I would try: s/\n//g; This should replace every newline with nothing, globally. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Byrne Sent: Wednesday, October 08, 2003 4:09 PM To: [EMAIL PROTECTED] Subject: [SPAM] newline...be gone Greetings, I

RE: newline...be gone

2003-10-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: > Subject: newline...be gone > > > Greetings, > > I have a question that probably easy to many... > > How can I get rid of the newline at the end of $line > (which transfers to $remainder after splitting)? If it is not off your system and you are getting the dat

newline...be gone

2003-10-08 Thread David Byrne
Greetings, I have a question that probably easy to many... How can I get rid of the newline at the end of $line (which transfers to $remainder after splitting)? foreach $filename (@filelist) { open(INPUT,"$filename"); foreach $line () { chomp($line); my ($gene,$remainder) =

RE: Capturing the output of a system() command

2003-10-08 Thread Erich C. Beyrent
> Am I able to capture the output of a system call? > Currently, I route the output to a temporary file, > then read the contents in when the call is done. > I'd rather not make a temp file. > George Hi there, Here is what I do: my $cmd = `base64 -e ASCIIFILE -`; } open(APP, "$cmd 2>&1 |") o

Re: could not ODBC Sam-Test because -1044[Microsoft][ODBC Microsoft Access Driver] N

2003-10-08 Thread tanman
Check perldoc win32::odbc. Try (UNTESTED): $DSN='DSN=Microsoft Access Driver (*.mdb);DBQ=c:\temp\db1.mdb' then $db=new Win32::ODBC($DSN) or die ... Also note the distinction between double quotes (") and single quotes (') which you've confused in your code.   - Original Message - From: S

HTML::Parse question

2003-10-08 Thread Craig Cardimon
I'm trying to parse an HTML file for eventual importation into SQL Server 2000. I've heard great things about HTML::Parse, but that module is not available for ActiveState Perl 5.8.0 running on Windows XP Pro. Any hint, tips, or suggestions on how to parse an HTML document into ASCII would be ap

Re: Chomp to trim '\r'

2003-10-08 Thread Randy Kobes
On Wed, 8 Oct 2003, Richard Morse wrote: > To the best of my knowledge, binmode isn't a > "Windows-only" function. It's just that the most common > operating systems besides windows don't make distictions > between text and binary files, so it isn't useful on *nix > and its variants. Apparently

Re: file parsing

2003-10-08 Thread Lori
Thanks Carl ! you were right - I was bitten by using $next line =<> not $next line = ... I did finally get the following code to work, but Im sure it could be done more consisely, Im going to send you all my code followed by my teachers code. Just in case someone finds it interesting. Both my

Multiple 'do perlscript.pl' calls

2003-10-08 Thread Electron One
I have three questions and would really appreciate any help. 1. I am running a perl script that calls other perl scripts etc. All using the 'do perlscript.pl' method. Apparently these perl scripts have gotten so long that after a certain amount of 'do perlscript.pl' commands, the script crashes.

sub() or eval() ?

2003-10-08 Thread Burak Gürsoy
Which one is better (equal?)? why? %some_hash = ( blah => sub { bleh() }, foo => sub { $bar - $baz / 100 }, . . . ); $some_hash{foo}->(); [or] %some_hash = ( blah => 'bleh()', foo => '$bar - $baz / 100', . . . ); eval { $some_hash{foo} }; Well... I'm curious about sub()... _

Re: Chomp to trim '\r'

2003-10-08 Thread Will of Thornhenge
Carl Jolley wrote: After all, all binmode is, is a way to turn off perl's default way of handling the "\r" for you. It's your way of saying to perl "Thanks, but no thanks for your offer of assistance, For this file, I can handle this issue without your help". While this is true within the cont

Re: Chomp to trim '\r'

2003-10-08 Thread Richard Morse
On Wednesday, October 8, 2003, at 12:52 AM, Carl Jolley wrote: Anyway that's why binmode is a Windows-only function. A common mis-conception among windows perl'ers is that somehow binmode is needed to properly handle a binary/non-text mode file. To the best of my knowledge, binmode isn't a "Window

Re: How to skip unwanted columns in CSV file?

2003-10-08 Thread Richard Morse
On Monday, October 6, 2003, at 07:01 AM, Carl Jolley wrote: On Fri, 26 Sep 2003, Ken Cornetet wrote: I suppose you could get fancy and use DBI and DBD-CSV. Why complicate a simple task? Unless of course, you're trying to deliberatly make life difficult for the next person who will have to mainta

RE: TK positioning viewable area of scrolled rotext

2003-10-08 Thread Lynn. Rickards
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > Beckett Richard-qswi266 > Sent: Wednesday, October 08, 2003 6:52 AM > To: '[EMAIL PROTECTED]' > Subject: TK positioning viewable area of scrolled rotext > > > Guys, > > I am using a scrolled rotext wid

Re: Chomp to trim '\r'

2003-10-08 Thread Carl Jolley
On Wed, 8 Oct 2003, Sisyphus wrote: > Lee Goddard wrote: > > > > > Why not use a regular expression? > > > > I can't find an answer to that question - and, judging by the responses > so far received, nor can anyone else !! > > ;-) > You know that in perl "TAMTOWTDI". However usually t

Filling an input file field

2003-10-08 Thread Barry Dancis
Hi -- I am using formbuilder with template toolkit and ie6. One of my fields is of type=file but IE6 won't let me set its value using values => $file_name. Is there any way to set it with formbuilder and still have the nice file search input? Do I have to write my own file browser? Have a text

TK positioning viewable area of scrolled rotext

2003-10-08 Thread Beckett Richard-qswi266
Guys, I am using a scrolled rotext widget with 2 lines as a status bar, so that the user can scroll backwards over the messages. How do I make the widget display the bottem of the scrolled area, rather than the top? Thanks. R. ___ Perl-Win32-Users mai

Re: WWW::Mechanize question

2003-10-08 Thread mail admin
- Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: "mail admin" <[EMAIL PROTECTED]> Cc: "WIN32-PERL" <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 9:03 AM Subject: Re: WWW::Mechanize question + {$res = $ua->click(); # retrieve the content) I found funny looking

Re: Chomp to trim '\r'

2003-10-08 Thread Sisyphus
Lee Goddard wrote: Why not use a regular expression? I can't find an answer to that question - and, judging by the responses so far received, nor can anyone else !! ;-) Cheers, Rob -- Any emails containing attachments will be deleted from my ISP's mail server before I even get to

RE: Chomp to trim '\r'

2003-10-08 Thread Beckett Richard-qswi266
> > Why not use chop? That removes the last character. > > > > Yes, it certainly does even if the last character is not a > "\r" character. > So to do the work of one good regex substitute operator as > Lee suggested > you would have to determine some how (a regexp match operator?, a > substring