in reply to Re: Doing "it" only once
in thread Doing "it" only once

my @labels = qw /L0 L1 L2/; ... goto $labels[0]; L0:
Hard to code and maintain. You want a construct that works correctly without depending on you getting all of the labels correct, or selecting the proper index in the labels array. Your code has 3 places that have to "match" to function.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^3: Doing "it" only once
by Anonymous Monk on Sep 23, 2005 at 09:13 UTC
    You want a construct that works correctly without depending on you getting all of the labels correct,

    Sure, once you start writing code that works correctly without depending you getting all the subroutine names correct.

    selecting the proper index in the labels array.

    Well, it's not very hard to count 0, 1, 2, .... ;-)