in reply to Re: fun(?) with +=
in thread fun(?) with +=
#!/usr/bin/perl use strict; use warnings; my $baz = 0; my $foo = shift; $foo = 1 if !defined($foo); chomp(my @bar = qw( etc etcetera )); die if $foo < 1; while($baz < $foo){ $baz += 1; print "$bar[rand @bar] ", "ad infinitum\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fixed the problem
by itub (Priest) on Jan 03, 2005 at 14:33 UTC |