From: "Sandor Szücs" Date: 2008-07-09T18:53:09+09:00 Subject: Re: Piping data in on the command line 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 > 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ücs --