http://www.perlmonks.org?node_id=76090


in reply to Question of safe data passing...

As I've said before, use environment variables. Unless your system is set up very strangely, they are not available in /proc. Then it's simple enough to do something like this:

my $username = $ENV{'LC_MONETARY'}; my $pass = $ENV{'FOOBAR'}';

That way, anyone else on the system can read your script, but it does them no good unless they are logged in to the account with the environment variables.

Replies are listed 'Best First'.
Re: Re: Question of safe data passing...
by suaveant (Parson) on Apr 27, 2001 at 17:54 UTC
    if the script is running as you, you can see the environ file in /proc
                    - Ant