in reply to Re: Perl & C/C++
in thread Perl & C/C++
Or better yet, just generate a random RGB on each hit?my @COLOR; { local *ARGV; @ARGV = qw(/usr/lib/X11/rgb.txt); while (<>) { push @COLOR, $1 if /\d+\s+\d+\s+\d+\s+(\S+)/; } }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl & C/C++
by crenz (Priest) on Mar 29, 2003 at 16:31 UTC | |
by merlyn (Sage) on Mar 29, 2003 at 17:02 UTC | |
by Aristotle (Chancellor) on Mar 30, 2003 at 23:58 UTC | |
by merlyn (Sage) on Mar 31, 2003 at 00:35 UTC |