From: agouti agouti Date: 2006-06-29T23:00:52+09:00 Subject: command line with regexp same as script but didn't work hello ! i have to comment a link in lots html pages of a static site (with tables everywere ) : with my little ruby script :
while get
   gsub(/()/, '')
  print
end
it ok , but when i try try with command line :
cat  file.html | ruby -pe 'gsub(/()/, '')'
i got a error :
e:1:in `gsub': can't convert Fixnum into String (TypeError) from 
-e:1 
anybody can tell me why ?? (sorry for my bad english) -- Posted via http://www.ruby-forum.com/.