in reply to Re: Re: Hiding password on commandline
in thread Hiding password on commandline

Okay, I've learned that ord returns the numeric ascii value of the first character of $key. But where can I find a listing of those values so I can figure out what 8 and 13 correspond to? Do ascii values remain the same across platforms?
  • Comment on Re: Re: Re: Hiding password on commandline

Replies are listed 'Best First'.
Re: Re: Re: Re: Hiding password on commandline
by Anonymous Monk on Jan 18, 2004 at 22:59 UTC
    Got it! The ascii value of eight is for backspaces. And 13 is for carriage returns, but on my solaris machine, 13 was not working, so I changed 13 to 10, the value for newlines, and it worked like a charm. Thanks.
      :-), now sign up for Monks (it's free). I think my turning point in Perl was when I joined this site. These guys are AWESOME, and we all just want to pass the knowledge along.
      Once you really learn Perl, I promise, you won't want to use any other language, and you will probably think you can solve all problems with it. Indeed, once I thought I saw a decent argument for NOT using it. A guy had an algorithm that indeed ate a lot of computation time when he emulated the c function that he had. In c the function took about 4 seconds. In Perl it took over 10 minutes to run. Ugly... but then a gent showed how to use the Inline::C module to compile that C code into a library that Perl linked to at run time and bingo.. the whole program ran in 4 seconds. I was hooked on Perl at that moment.
      JamesNC
        Why do people always assume AM is not a monk who has chosen to remain anonymous? Sometimes in the past I have posted questions with forgetting to login first. So I remain anonymous. Other times I just feel like remaining anonymous . . . I don't know, it's one of the great things about the web: the illusion of anonymity.