in reply to Re: Hiding/masking your username or password
in thread Hiding/masking your username or password

If I remember correctly, not every OS supports assigning to argv[0] a.k.a. $0. Some OSes have limitations for assigning to it. See $0 in perlvar. Simply emptying @ARGV could also work on some OSes.

The best way is not to have passwords at all, but use public keys instead. Second best solution is to have passwords in a file readable only for the owner. Third best solution is to have passwords in configuration files.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^3: Hiding/masking your username or password
by rowdog (Curate) on Nov 29, 2009 at 15:00 UTC

      Just tried assigning to $0 and $^X on Win2000 with Strawberry Perl. Task Manager shows perl.exe in Processes whatever I try. So, it also does not work on Windows.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)