queuing up user input via writes to STDIN

2006-07-27 Thread Gavin Bowlby
ing the array elements as if they were keyboard commands, or opening a pipe to another program that fed commands in. Is there a way to do this with manipulation of STDIN? thanks, Gavin Bowlby -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: question on redirecting output of Perl debugger commands

2006-07-12 Thread Gavin Bowlby
gbowlby isp 113 Jul 12 15:28 dbug.txt bash-2.05b$ cat dbug.txt DB<2> main::(test.pl:4): print "x:$x\n"; DB<2> 1 <= mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix Sent: Wednesday, July 12, 2006 12:11 PM To: Gavin Bowlby Cc: perl beginners

RE: question on redirecting output of Perl debugger commands

2006-07-12 Thread Gavin Bowlby
rs perl Subject: Re: question on redirecting output of Perl debugger commands On 7/7/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote: > Is there a way to redirect the output of a debugger command to a file? What I use is Linux specific, sort of varies by bash and distro for example, but you are w

question on redirecting output of Perl debugger commands

2006-07-07 Thread Gavin Bowlby
mand, so I don't think I can easily set up a pipe to send combinations of Perl debugger commands and application commands to a "perl -d" session. Or maybe I'm wrong, and there's an easy way to do this... Any suggestions will be welcomed... Thanks, Gavin Bowlby -- To u

suppressing selected warning messages

2006-05-24 Thread Gavin Bowlby
l warning checks by doing a: no warnings; if ($a == 7) { use warnings; but I would like all other "normal" Perl warnings to be used for the statement: if ($a == 7) other than the check for the LHS of the equality check being a numeric value. Is this possible? Regards, Gavin B

RE: question on Perl determinism with hash keys

2006-05-17 Thread Gavin Bowlby
ta on this? Regards, Gavin Bowlby -Original Message- From: Randal L. Schwartz [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 6:47 AM To: beginners@perl.org Subject: Re: question on Perl determinism with hash keys >>>>> ""Gavin" == "Gavin Bowl

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
2006 6:15 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys Understandable. Why do you need the keys function to return the keys in the same order? What is it that you're trying to do? -Original Message----- From: Gavin Bowlby [mai

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
5:47 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys I personally have never felt the need. One thing I'll often do is a foreach(sort keys %hash){ #do something... } If you know what the keys are going to be ahe

RE: question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
make this change... Gavin -Original Message- From: Timothy Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:28 PM To: Gavin Bowlby; beginners@perl.org Subject: RE: question on Perl determinism with hash keys If you mean in the same order, then no. perldoc -q

question on Perl determinism with hash keys

2006-05-16 Thread Gavin Bowlby
All: If I populate a %hash within a Perl program, is there any guarantee that from run to run of the same Perl program the keys(%hash) function will return identical sets of keys? thanks for any insights on this, Gavin -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: permanently changing @INC

2006-05-12 Thread Gavin Bowlby
Another way to do this is to append the desired paths to the environment variable PERL5LIB. This environment variable change would need to be embedded within some sort of setup script for your Perl programs, or in a .profile or equivalent file that is executed whenever users open a new command she

question on Terminal I/O

2006-04-11 Thread Gavin Bowlby
le, because I'm missing a more elaborate method for sampling keyboard input than a read to provides. Short of learning Perl-curses or writing a full-blown TK-Perl app, are there any simple techniques - (read: minimum learning time) that I can use to implement a "protect command prompt&q

RE: Counting specific elements in a XML object

2006-03-30 Thread Gavin Bowlby
How about: cat fn | grep | wc as a non-Perl approach to the problem... -Original Message- From: Hans Meier (John Doe) [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 11:38 AM To: beginners@perl.org Subject: Re: Counting specific elements in a XML object Dave Adams am Donnerst

RE: question on pattern matching

2006-03-07 Thread Gavin Bowlby
esult to a $N variable, not to change the operations of the pattern matching itself. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix Sent: Tuesday, March 07, 2006 6:51 PM To: Gavin Bowlby Cc: beginners@perl.org Subject: Re: question on pattern mat

question on pattern matching

2006-03-07 Thread Gavin Bowlby
statements pass: $x =~ /^(\s*)(\d+)(\.?)(\d*)(\s*)(s|S)/; $y = $1.$2.$3; # PASSES, $3 is defined and equal to the null string Could someone explain why the first case fails? Regards, Gavin Bowlby -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] &l

RE: problems with subroutine prototype checking

2006-01-19 Thread Gavin Bowlby
at's what I'm looking for. Thanks again for your help, Gavin -Original Message- From: Jimmy [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 4:14 PM To: Gavin Bowlby; beginners@perl.org Subject: Re: problems with subroutine prototype checking ----- Original Message

problems with subroutine prototype checking

2006-01-19 Thread Gavin Bowlby
for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. I'm running Perl under Cygwin on Windows XP. Regards, Gavin Bowlby