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
-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 =
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
)
- 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?
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
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
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 ***
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
; 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
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
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
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
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'
13 matches
Mail list logo