in reply to (tye)Re2: framechat
in thread framechat
Too much repeated code.
my $tmpdir; for (qw(TMPDIR TMP TEMP)) { next unless $tmpdir = $ENV{$_}; last if -d $tmpdir; die "Invalid temporary directory $tmpdir from \$ENV{$_}\n"; } $tmpdir ||= "/tmp"; # if this is busted, you got troubles...
-- Randal L. Schwartz, Perl hacker
|
---|
Replies are listed 'Best First'. | |
---|---|
(tye)Re3: framechat
by tye (Sage) on Mar 15, 2001 at 21:41 UTC | |
by chromatic (Archbishop) on Mar 19, 2001 at 10:24 UTC |
In Section
Code Catacombs