Re: Question on Perl

2008-08-27 Thread dan
On Wed, 27 Aug 2008 06:29:53 -0700 (PDT), [EMAIL PROTECTED] wrote: > Hi All, > > I am learning how to use Perl. When I was first time using VBA, I > could use "F8" to track how all the variables change each by each and > step by step so that I can understand how the whole coding flows. Is > there

Re: Question on Perl

2008-08-27 Thread Raymond Wan
Hi Jin Hoo, Jenda Krynicky wrote: From: [EMAIL PROTECTED] I am learning how to use Perl. When I was first time using VBA, I could use "F8" to track how all the variables change each by each and step by step so that I can understand how the whole coding flows. Is there any method to do so (

Re: Question on Perl

2008-08-27 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I am learning how to use Perl. When I was first time using VBA, I > could use "F8" to track how all the variables change each by each and > step by step so that I can understand how the whole coding flows. Is > there any method to do so (or similar) in Perl? Many thanks!

Re: Question on Perl

2008-08-27 Thread Mr. Shawn H. Corey
On Wed, 2008-08-27 at 15:55 +0100, Pat Rice wrote: > Hi ya > I put mine in if statements, then you can turn them of and on globally > > if(debug == 1){ > print "$bla" > } Use Data::Dumper to see all levels of a variable: use Data::Dumper; print '%var : ', Dumper \%var if $debug == 1; -- Just

Re: Question on Perl

2008-08-27 Thread Pat Rice
Hi ya I put mine in if statements, then you can turn them of and on globally if(debug == 1){ print "$bla" } hope that helps Pat On Wed, Aug 27, 2008 at 3:47 PM, Jeff Pang <[EMAIL PROTECTED]> wrote: > >> Message du 27/08/08 16:31 >> De : [EMAIL PROTECTED] >> A : beginners@perl.org >> Copie à : >>

Re: Question on Perl

2008-08-27 Thread Mr. Shawn H. Corey
On Wed, 2008-08-27 at 06:29 -0700, [EMAIL PROTECTED] wrote: > Hi All, > > I am learning how to use Perl. When I was first time using VBA, I > could use "F8" to track how all the variables change each by each and > step by step so that I can understand how the whole coding flows. Is > there any met

Re: question on Perl determinism with hash keys

2006-05-17 Thread Randal L. Schwartz
> "Gavin" == Gavin Bowlby <[EMAIL PROTECTED]> writes: Gavin> Does anyone have any performance data on this? Yes, tie kills hash access by about a factor of 10. Don't do it. Use *any* other means. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.sto

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-17 Thread Randal L. Schwartz
> ""Gavin" == "Gavin Bowlby" <[EMAIL PROTECTED]> writes: "Gavin> It's important that user scripts are dispatched in identical order "Gavin> across runs for repeatability and debugging, and the general sanity of "Gavin> the users and the developer. Then add a serial number, and sort on that wh

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 Timothy Johnson
ROTECTED] Sent: Tuesday, May 16, 2006 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 yo

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 Timothy Johnson
EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:37 PM To: Timothy Johnson; beginners@perl.org Subject: RE: question on Perl determinism with hash keys Timothy et al: Thanks, I did mean in the same order. Any idea on the relative performance of a hash tied to IxHash vs. a vanilla hash? I have a Perl pr

Re: question on Perl determinism with hash keys

2006-05-16 Thread John W. Krahn
Gavin Bowlby wrote: > All: Hello, > 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? Can I assume that you are worried about the order of the keys? Do you want the k

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

RE: question on Perl determinism with hash keys

2006-05-16 Thread Timothy Johnson
If you mean in the same order, then no. perldoc -q order -Original Message- From: Gavin Bowlby [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 5:25 PM To: beginners@perl.org Subject: question on Perl determinism with hash keys All: If I populate a %hash within a Perl program,

RE: Question on PERL coding style...

2002-01-29 Thread Curtis Poe
--- John <[EMAIL PROTECTED]> wrote: > If you put them in a module are they parsed before they are called? > Does it matter whether you use "use" or "require"? When is it better > to specify subroutines when you use "use"? See perldoc -f use and perldoc -f require. "use" happens at compile tim

RE: Question on PERL coding style...

2002-01-29 Thread John
If you put them in a module are they parsed before they are called? Does it matter whether you use "use" or "require"? When is it better to specify subroutines when you use "use"? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Question on PERL coding style...

2002-01-29 Thread McDonald Patrick
Perl will only execute subroutines when called. It is recommended that you group all subroutine defintions either at the beginning or the end of the program. Pat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 1:38 PM To: [EMAIL PROT

RE: Question on PERL coding style...

2002-01-29 Thread Hanson, Robert
It goes around it. You need to call a subroutine for it to be executed... although it will still be compiled, which could cause compilation errors even before the script starts to run. Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2