You're replying to a comment by Peteris Krumins.

January 08, 2010, 02:04

michael.wang, good question.

This one-liner does not need any code to run. -p argument generates all the necessary code already.

But to run a one-liner we actually need to specify something to -e argument.

At first I specified the empty string:

perl -00 -p -e ''

But then I discovered that the empty string can be replaced just by a 0 (because 0 does nothing):

perl -00 -p -e 0

You could as well have used any constant:

perl -00 -p -e 1

You just need to specify something to -e that does nothing, to satisfy the interpreter argument checking.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "sandbox_127": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.