in reply to Re: unix to perl questions
in thread unix to perl questions

What is echo? I know we use this in UNIX in place of print. I see that you chose to use STDIN and using ReadLine(0) is that an array index? So you are testing changing nPassword to array ReadLine(0) and comparing it to nPassTest? Just want to be sure I am understanding correctly.

Replies are listed 'Best First'.
Re^3: unix to perl questions
by soonix (Chancellor) on Mar 13, 2015 at 10:28 UTC
    system("echo",...) is roughly equivalent to print.
    I guess the reason why our anonymous brother didn't use the latter is that you have the "real" commands for debugging, and to change from "dry run" to "wet run" (or how this may be called) afterwards you do (in vi command mode)
    :%s/system("echo",/system(/
    BTW for vi on Windows, see http://www.vim.org/ugrankar.pdf
      Thank you for answering the echo question and for the link. I may consider putting another program on the comp. I'm just very careful as many of my classes require me to put programs on it already(every 5 weeks I end up having to add at least one new program for a class). I try to keep it simple.
      I guess the reason why our anonymous brother didn't use the latter is that you have the "real" commands for debugging, and to change from "dry run" to "wet run"
      Correct!