>>>>> "MLC" == Mariano Loza Coll <malozac...@gmail.com> writes:

  MLC> Hi all,
  >>  OC> I never bothered to learn how
  >>  OC> to use goto because it's deprecated (or on it's way?), but it
  >>  OC> seems like this would be a good place to use it.  At the same
  >>  OC> time, I understand that use of goto is akin to sleeping with your
  >>  OC> sister among most programmers in the Perl programming community.

  MLC> Like Owen, I've come across many a recommendation AGAINST using goto
  MLC> in Perl. And (like Owen?), I have yet to find one that explains
  MLC> clearly the reasons arguing against its use.
  MLC> If nothing else, it has made me very curious... Can any of the more
  MLC> experienced programmers (ie. nearly everyone else on this list by my
  MLC> standards) point to a good explanation as to why one should avoid goto
  MLC> in Perl (or coding in general)? I looked around in perl-begin.org but
  MLC> couldn't find anything obvious. Once again, I make my request from the
  MLC> purest desire of learning Perl the best way I can.

google for the term spaghetti code. read.

have you ever coded in assembler? or seen goto used a lot? if not, there
is no reason to learn about goto these days. seriously.

this has nothing to do with perl itself. goto is a bad concept from very
long ago in programming. just read about it on the web and you will get
more than you can learn here.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to