Sandor Szücs
7/9/2008 9:53:00 AM
On 09.07.2008, at 09:22, James Coglan wrote:
> I know you can get command line args using ARGV, but is there a way =20=
> to use
> the '<' operator to pipe data into your program, as in
AFAIK that's called I/O redirection.
> ruby myprog.rb < ~/myfile.txt
$ ruby cat.rb < cat.rb
puts *ARGF
regards, Sandor Sz=FCcs
--