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
gt; A : beginners@perl.org >> Copie à : >> Objet : Question on Perl >> >> >> 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 >>

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

Question on Perl

2008-08-27 Thread leejinhoo
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 method to do so (or similar) in Perl? Many thanks! Best regards, Ronald

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
t: RE: question on Perl determinism with hash keys I don't want to do this sorting because I have many hashes within my Perl program that are changing at a high rate, and I'm trying to optimize performance within my Perl program. -Original Message- From: Timothy Johnson [mailto:[EMAIL P

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

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

Question on Perl FTPS implementation (Net::FTPSSL)

2005-09-05 Thread Ashok Subramanian
Hi, I'm trying to get CPAN's Net::FTPSSL working from my linux dev env. I installed the dependent modules (Net::SSLeay IO::Socket::SSL) and they seemed to work as expected. The following are the test scripts : --

Re: Yet another question on perl modules

2005-07-07 Thread Xavier Noria
On Jul 7, 2005, at 8:16, Peter Rabbitson wrote: Hello everyone, Most modules I run across have a BEGIN block containing some variable declarations, module loaders etc. Although I understand what BEGIN is (code being evaluated immediately after it is parsed), I miss the point of the excercise.

Re: Yet another question on perl modules

2005-07-06 Thread Peter Rabbitson
On Thu, Jul 07, 2005 at 02:22:34AM -0400, Casey West wrote: > This is a confusing question, but I think the answer is that a BEGIN > block would come into play before any of these things are executed. > > -- > Casey West > > Sorry :) Question is: why would I want to use a BEGIN block in the

Yet another question on perl modules

2005-07-06 Thread Peter Rabbitson
Hello everyone, Most modules I run across have a BEGIN block containing some variable declarations, module loaders etc. Although I understand what BEGIN is (code being evaluated immediately after it is parsed), I miss the point of the excercise. For example: package csv_generator; use Text::C

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
PROTECTED] Subject: Question on PERL coding style... This might be a really strange question, but I need to ask - Does PERL execute from beginning through the program in a linear fashion, "jumping around" subroutines unless they're called? I have a program that's structured as

RE: Question on PERL coding style...

2002-01-29 Thread Hanson, Robert
, 2002 1:38 PM To: [EMAIL PROTECTED] Subject: Question on PERL coding style... This might be a really strange question, but I need to ask - Does PERL execute from beginning through the program in a linear fashion, "jumping around" subroutines unless they're called? I have a

Question on PERL coding style...

2002-01-29 Thread Richard.C.1
This might be a really strange question, but I need to ask - Does PERL execute from beginning through the program in a linear fashion, "jumping around" subroutines unless they're called? I have a program that's structured as shown below (assume vars and statements are different) and need to know