i am newbie of ruby , but i met a strange problem
when use
···
--------------------------------
#echo hello |ruby -ve 'puts ARGF.readlines'
ruby 1.8.3 (2005-09-21) [i686-linux]
hello
--------------------------------
it's ok
but when i append a argument with pipe
--------------------------------
# echo hello |ruby -ve 'puts ARGF.readlines' somearg
ruby 1.8.3 (2005-09-21) [i686-linux]
-e:1:in `readlines': No such file or directory - somearg
(Errno::ENOENT)
from -e:1
--------------------------------
why ruby say 'no such file or diectory'? can anyboby explain it?
thanks