in reply to Re: Basic Coding Tips: Parsimonious Parameterization
in thread Basic Coding Tips: Parsimonious Parameterization

Seen recently in a production script distributed around the company I work for-

my $var=1; while ($var == 1){ # do a bunch of stuff and never touch $var # exit if (some condition); }

while(1) must have been too difficult :)

--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

Replies are listed 'Best First'.
Re^3: Basic Coding Tips: Parsimonious Parameterization
by Aristotle (Chancellor) on Jan 31, 2005 at 07:37 UTC

    Or, depending on structure, even

    do { # ... } until $condition;

    Makeshifts last the longest.