Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: (tye)Re2: framechat

by merlyn (Sage)
on Mar 15, 2001 at 21:14 UTC ( #64713=note: print w/replies, xml ) Need Help??


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

    $tmpdir ||= "/tmp"; # if this is busted, you got troubles...

    I guess you've never heard of the existance of other operating systems, eh? (:

            - tye (but my friends call me "Tye")
      He has, that's why he can say it's trouble. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://64713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2022-01-19 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (54 votes). Check out past polls.

    Notices?