http://www.perlmonks.org?node_id=7978


in reply to RE: Number of times I've used goto in Perl
in thread Number of times I've used goto in Perl

IMHO, breaking flow using 'next' counts.

That's almost as bad as an infinite 'while(true)' construct! :)
  • Comment on RE: RE: Number of times I've used goto in Perl

Replies are listed 'Best First'.
Re: RE: RE: Number of times I've used goto in Perl
by kaatunut (Scribe) on Dec 12, 2000 at 16:30 UTC
    What's so bad about while (1) { something; next if somethingmore; last if somethingelse; } ?

    I use it all the time.

     -Kaatunut