in reply to Re: expression which does nothing
in thread expression which does nothing
jesuashok: the 42 here is indeed essentially a noop, but Perl requires something to use as a program source. If you hadn't supplied -e, in the absence of a filename it would try to read the program from standard input; that would appear to make perl hang until you hit EOF (^D or ^Z according to platform) in the terminal window.
-p, as the anonymous commenter indicated, surrounds a -e-oneliner with a read and print loop. The -e is still required.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: expression which does nothing
by ferreira (Chaplain) on Dec 26, 2006 at 13:53 UTC | |
by ikegami (Patriarch) on Dec 26, 2006 at 15:59 UTC | |
by bart (Canon) on Dec 27, 2006 at 11:27 UTC |