Hi,
In message "Re: ruby -n -e doesn't find things ..."
on 02/03/26, Ron Jeffries <ronjeffries / REMOVEacm.org> writes:
|B, is there a way to tell Ruby to open the files in binary mode when doing a one
|liner from the command line, i.e. with -n or -p?
How about the following?
ruby -ne 'BEGIN{ARGF.binmode}; ....}
matz.