TQuid has asked for the wisdom of the Perl Monks concerning the following question:
$user and such get read in interactively at run-time, so with -w, I get warnings about using an undefined value. eval {} isn't doing what I was expecting, and it doesn't seem to matter whether I use use, require, or do {}. Any input on how to clean this up? --TQuid$transfer_log = eval { "$log_dir/$user_data{site}->[0]-access_log" }; @adduser = eval { "/usr/sbin/adduser -g $group -G $user_data{site}- +>[0] -H" . "$home_dir -P $pwd -s $shell $user" };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Configuration variables using run-time in put without -w complaints?
by Shendal (Hermit) on Jun 26, 2000 at 23:56 UTC | |
by TQuid (Sexton) on Jun 27, 2000 at 00:01 UTC | |
by Shendal (Hermit) on Jun 27, 2000 at 00:11 UTC | |
|
Re: Configuration variables using run-time in put without -w complaints?
by Adam (Vicar) on Jun 26, 2000 at 23:58 UTC |