how do you run the debuger for perl/TK in Windows-2000

2004-07-11 Thread Marco Perl
Greetings, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors?

RE: Could you please help with a PERL/TK question.

2004-07-11 Thread Toby Stuart
> -Original Message- > From: Marco Perl [mailto:[EMAIL PROTECTED] > Sent: Monday, 12 July 2004 4:19 PM > To: ; [EMAIL PROTECTED] > Subject: Could you please help with a PERL/TK question. > > > > Hi, I developed a perl/TK script in Win-2000 > environment. > when I run it the DOS-screen

Could you please help with a PERL/TK question.

2004-07-11 Thread Marco Perl
Hi, I developed a perl/TK script in Win-2000 environment. when I run it the DOS-screen pops up and displays my program errors. but this screen closes so fast that its impossible to read the error. so, how do I debug my perl.ptk script or how do I slow down the DOS-screen to read the errors? tha

Re: My first perl script

2004-07-11 Thread John W . Krahn
On Sunday 11 July 2004 14:12, Paul Smith wrote: > > John W.Krahn wrote: > > > > #!/usr/bin/perl > > use warnings; > > use strict; > > > > ( $^I, @ARGV ) = ( '.bak', 'text_file' ); > > while ( <> ) { > > s/^#// if /Zyloric/; > > print; > > } > b> Thanks, John and Gunnar. (Please, be pati

Re: Regex for numbers and text

2004-07-11 Thread Jeff 'japhy' Pinyan
On Jul 10, Jerry Preston said: >Jerry 2.74 4.5 mon >Mark -14-10.75 -10 new > > /(\w+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(\w+)/; Have you considered just using split()? my @fields = split; # or my ($name, $x, $y, $z, $whatever) = split; --

RE: Packing a Hexadecimal String

2004-07-11 Thread Youssef Eldakar
It does look like a Unicode issue. On the machine where I was having trouble, $LANG was: en_US.UTF-8 Removing UTF-8 from $LANG eliminates the problem: $ env LANG=en_US perl -e 'print pack("H*","208010")' | od -Ax -tx1 00 20 80 10 03 Thank you so much for pointing me to the source o

Re: Regex for numbers and text

2004-07-11 Thread Jeff 'japhy' Pinyan
On Jul 11, Gunnar Hjalmarsson said: >Jerry Preston wrote: >> I am trying to setup a single regex to breakdown the following lines: >> >> Jerry2.74 4.5 mon >> Mark -14-10.75 -10 new >> >> /(\w+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(-?\d+.\d+)\s+(\w+)/; > >You

Re: Module reuse

2004-07-11 Thread Gunnar Hjalmarsson
Randy W. Sims wrote: Gunnar Hjalmarsson wrote: I for one concentrate on learning - and practicing - the basic regex syntax. That way I get better prepared when I need to write less common regexes. I understand your argument. It is very important to understand what is going on, to understand regexs

RE: Is "Thank you" okay? [was: where to put modules?]

2004-07-11 Thread Charles K. Clarkson
Randy W. Sims wrote: : I used to be of the opinion that "thank you" was "unneccessary : traffic". In fact, IIRC, it was part of proper usenet : netiquette. However, I now believe that for the subset of : newsgroups and mailing-lists that deal with question & answer : typ

Re: Could people please use sensible subjects?

2004-07-11 Thread u235sentinel
Jenda Krynicky wrote: Here are a few subjects I've seen in the list lately: From [EMAIL PROTECTED] I simply delete them without a second thought. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Packing a Hexadecimal String

2004-07-11 Thread Randy W. Sims
Youssef Eldakar wrote: I am running Perl 5.8.0 on Linux. -Original Message- From: Randy W. Sims [mailto:[EMAIL PROTECTED] Sent: Sun 7/11/2004 11:01 AM To: Youssef Eldakar Cc: [EMAIL PROTECTED] Subject: Re: Packing a Hexadecimal String [SNIP] When I get a chance I'll check

Re: pls help

2004-07-11 Thread u235sentinel
I agree. If they are a competent company then shallow knowledge of Perl will get him nowhere. I've been studying for almost a year and have written basic code (IMO) to accomplish a few things. In a recent interview I was asked about my Perl knowledge. They had a couple of basic questions wh

Module reuse (was: Re: Regex for numbers and text)

2004-07-11 Thread Randy W. Sims
Gunnar Hjalmarsson wrote: Randal L. Schwartz wrote: Gunnar Hjalmarsson writes: /(\w+)(?:\s+$RE{num}{real}){3,3}\s+(\w+)/; That's an alternative, but would it necessarily be better? To me, using a module for such a trivial thing just creates another level of abstraction without actually making it

Re: My first perl script

2004-07-11 Thread Gunnar Hjalmarsson
Paul Smith wrote: I am a beginner with perl. I would like to ask you whether it is difficult to make a perl script doing the following: (1) read a text file; (2) erase the character # placed at the beginning of the line that contains "Zyloric"; (3) replace the original file with the file got aft

Re: My first perl script

2004-07-11 Thread John W . Krahn
On Sunday 11 July 2004 10:18, Paul Smith wrote: > > Dear All Hello, > I am a beginner with perl. I would like to ask you whether it is > difficult to make a perl script doing the following: > > (1) read a text file; > (2) erase the character # placed at the beginning of the line that > contains "

My first perl script

2004-07-11 Thread Paul Smith
Dear All I am a beginner with perl. I would like to ask you whether it is difficult to make a perl script doing the following: (1) read a text file; (2) erase the character # placed at the beginning of the line that contains "Zyloric"; (3) replace the original file with the file got after the de

Re: Is "Thank you" okay? [was: where to put modules?]

2004-07-11 Thread Randy W. Sims
On 7/11/2004 12:38 PM, Jenda Krynicky wrote: From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> Christopher J. Bottaro wrote: thank you everyone for the replies. one quick question though. is it customary to thank people for replies? or does it just cause more unecessary traffic on the newsgroup? I'm

Could people please use sensible subjects?

2004-07-11 Thread Jenda Krynicky
Here are a few subjects I've seen in the list lately: >From [EMAIL PROTECTED] "Could anyone please answer a simple PERL question." ? "Cool construct" ? "A possibly stupid 'Perl' question?" ? "Dates are killing me.." ? "Need suggestions" ? "perl help" ? "Perl script" ? "pls help" ? "puzzled" ? "qu

Re: Strings??? Sub???

2004-07-11 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Charlene Gentle wrote: > > I need a example of how to receive a string (after someone entered a > > name for a txt file into a tk-box). It has to do the following : > > > > 1. Send the string to a sub > > 2. The sub should save the txt file for later

Re: Regex for numbers and text

2004-07-11 Thread Gunnar Hjalmarsson
Randal L. Schwartz wrote: Gunnar Hjalmarsson writes: /(\w+)(?:\s+$RE{num}{real}){3,3}\s+(\w+)/; That's an alternative, but would it necessarily be better? To me, using a module for such a trivial thing just creates another level of abstraction without actually making it easier. Can we agree to dis

Re: pls help

2004-07-11 Thread Jenda Krynicky
From: shashideep nuggehalli <[EMAIL PROTECTED]> > Hello everybody, > My name is Shashideep. I am new member of the group. I have been > learning PERL for the last few days. I want to be good enough to take > up interviews . BEG YOUR PARDON ??? > I would be grateful if somebody could direct

Re: MIME coding & flags for sending a .csv or Excel file

2004-07-11 Thread Jenda Krynicky
From: jason corbett <[EMAIL PROTECTED]> > I am sending Excel and .csv files via MIME and it appears that the > file is created on the server with the needed data, but when the > script is supposed to email a copy, I am getting blank .csv files. Just a wild guess ... are you closing the .csv or Ex

Re: Is "Thank you" okay? [was: where to put modules?]

2004-07-11 Thread Jenda Krynicky
From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> > Christopher J. Bottaro wrote: > > thank you everyone for the replies. one quick question though. is > > it customary to thank people for replies? or does it just cause > > more unecessary traffic on the newsgroup? > > I'm pretty new here, and don't

Re: Regex for numbers and text

2004-07-11 Thread Randal L. Schwartz
> "Gunnar" == Gunnar Hjalmarsson <[EMAIL PROTECTED]> writes: >> /(\w+)(?:\s+$RE{num}{real}){3,3}\s+(\w+)/; Gunnar> That's an alternative, but would it necessarily be better? To me, Gunnar> using a module for such a trivial thing just creates another level of Gunnar> abstraction without actual

Re: Regex for numbers and text

2004-07-11 Thread Gunnar Hjalmarsson
Randy W. Sims wrote: Gunnar Hjalmarsson wrote: (-?\d+(?:\.\d+)?) Better yet, use Regexp::Common: use Regexp::Common qw(number); /(\w+)(?:\s+$RE{num}{real}){3,3}\s+(\w+)/; That's an alternative, but would it necessarily be better? To me, using a module for such a trivial thing just creates anot

RE: Packing a Hexadecimal String

2004-07-11 Thread Youssef Eldakar
I am running Perl 5.8.0 on Linux. -Original Message- From: Randy W. Sims [mailto:[EMAIL PROTECTED] Sent: Sun 7/11/2004 11:01 AM To: Youssef Eldakar Cc: [EMAIL PROTECTED] Subject: Re: Packing a Hexadecimal String

Re: Packing a Hexadecimal String

2004-07-11 Thread Randy W. Sims
On 7/11/2004 3:43 AM, Youssef Eldakar wrote: I am trying to pack a hexadecimal string from a text file. I am using the H conversion with the pack function. Strangely, 0xC2 values are appearing in the resulting byte stream right before bytes whose value exceeds 0x7F. To illustrate, the following w

Packing a Hexadecimal String

2004-07-11 Thread Youssef Eldakar
I am trying to pack a hexadecimal string from a text file. I am using the H conversion with the pack function. Strangely, 0xC2 values are appearing in the resulting byte stream right before bytes whose value exceeds 0x7F. To illustrate, the following works as expected: $ perl -e 'print pack("