RE: Is GOTO evil?

2005-01-06 Thread Chris Devers
On Thu, 6 Jan 2005, Charles K. Clarkson wrote: Chris Devers [EMAIL PROTECTED] wrote: : In [brief] defense of GOTO, for some programming it is : essential. Assembly language programming, for example. Since this is a perl list, we can safely assume the OP was not asking about

Re: Is GOTO evil?

2005-01-06 Thread Robin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 07 January 2005 00:17, zentara wrote: Like in this contrived example. foreach my $x (1..100){ foreach my $y (1..500){ foreach my $z (1..1000){ if( $x + (2 * $y) - $z = 0 ) {goto END} } $y =

Re: Is GOTO evil?

2005-01-06 Thread Ron Wingfield
06, 2005 1:34 AM Subject: RE: Is GOTO evil? Chris Devers [EMAIL PROTECTED] wrote: (RE: Charles K. Clarkson's comment) : In [brief] defense of GOTO, for some programming it is : essential. Assembly language programming, for example. . . Programming in assembler, huh. You're

Re: Is GOTO evil?

2005-01-06 Thread Ron Wingfield
) - Original Message - From: Chris Devers To: Charles K. Clarkson Cc: Perl Beginners List Sent: Thursday, January 06, 2005 6:24 AM Subject: RE: Is GOTO evil?

Re: Is GOTO evil?

2005-01-06 Thread Randal L. Schwartz
Chris == Chris Devers [EMAIL PROTECTED] writes: Chris In Perl, the most common legit use of `goto` seems to be jumping out of Chris loops, Really? Where have you even seen that? I can show you an entire decade-spanning career of Perl programming where goto was never used to jump out of a

Re: Is GOTO evil?

2005-01-06 Thread Randal L. Schwartz
Zentara == Zentara [EMAIL PROTECTED] writes: Zentara When you use last to get out of a loop, it only takes you Zentara out of the loop you are in, And this is just wrong. You need to read Learning Perl, because two pages after we introduce last, we talk about labeled loops. Zentara but

Re: Is GOTO evil?

2005-01-06 Thread Peter Scott
This thread can't finish without mention of the classic paper at http://www.acm.org/classics/oct95/ . The only times I've used goto in Perl have been the goto sub form, which isn't much of a goto in the first place :-) -- Peter Scott http://www.perldebugged.com/ *** NEW ***

Re: Is GOTO evil?

2005-01-06 Thread Dave Gray
On 6 Jan 2005 16:11:40 -, Peter Scott [EMAIL PROTECTED] wrote: The only times I've used goto in Perl have been the goto sub form, which isn't much of a goto in the first place :-) I use it the most when I'm debugging. For example, if I'm hacking on a webpage with a bunch of redirects, I'll

RE: Is GOTO evil?

2005-01-06 Thread Burns, Edwin G.
; Burns, Edwin G. Subject: Re: Is GOTO evil? Don't know if anyone in the discussion has ever written any of IBM's early RPG (note that the options are still in the RPG/400 for the ILE, too, . . .DO NOT USE THEM!), but RPG instructions (known as calculation or C specs. -- nothing to do with the C

Re: Is GOTO evil?

2005-01-06 Thread Chris Devers
On Thu, 6 Jan 2005, Randal L. Schwartz wrote: Chris == Chris Devers [EMAIL PROTECTED] writes: Chris In Perl, the most common legit use of `goto` seems to be jumping out of Chris loops, Really? Where have you even seen that? I can show you an entire decade-spanning career of Perl

Is GOTO evil?

2005-01-05 Thread Christopher Spears
I heard a lot of people dislike goto. Why? When should I use this command? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

RE: Is GOTO evil?

2005-01-05 Thread Charles K. Clarkson
Christopher Spears [EMAIL PROTECTED] wrote: : I heard a lot of people dislike goto. Why? When : should I use this command? There are three forms of this statement. Each is discussed in the 'perlfunc' reference to 'goto'. Have you read that document? 'goto' is usually used as an

RE: Is GOTO evil?

2005-01-05 Thread Chris Devers
On Wed, 5 Jan 2005, Charles K. Clarkson wrote: Christopher Spears [EMAIL PROTECTED] wrote: : I heard a lot of people dislike goto. Why? When : should I use this command? There are three forms of this statement. Each is discussed in the 'perlfunc' reference to 'goto'. Have you read

RE: Is GOTO evil?

2005-01-05 Thread Charles K. Clarkson
Chris Devers [EMAIL PROTECTED] wrote: : In [brief] defense of GOTO, for some programming it is : essential. Assembly language programming, for example. Since this is a perl list, we can safely assume the OP was not asking about assembler's goto statement, but about perl's. 'perlfunc'