in reply to RE: Re: Configuration variables using run-time in put without -w complaints?
in thread Configuration variables using run-time in put without -w complaints?
Where your program file may look like this:# config file sub initConfig { $foo = "$user - bar"; # ... whatever... }
Does that solve your problem? I've done it this way in the past, and it has worked out well.# program require 'configuration_file'; print "Username:"; chomp($user = <STDIN>); # now $user exists, although you'd wanna check it for validity &initConfig(); # ... continue processing...
|
|---|