my @COLOR; { open my $fh, "<", "/usr/lib/X11/rgb.txt" or last; push @COLOR, /\d+\s+\d+\s+\d+\s+(\S+)/ while <$fh>; }
Makeshifts last the longest.
In reply to Re^3: Perl & C/C++ (lexical filehandle?)
by Aristotle
in thread Perl & C/C++
by hemaexp26
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |