From: Renald Buter Date: 2001-05-11T17:13:06+09:00 Subject: [ruby-talk:14985] Eval to Proc? Hello, I've been looking for it in the book, but I may be looking over it... My question is: is it possible to create a Ruby block/proc for evaluating using a string? For example #!/usr/local/ruby -w # test.rb p = Proc.new(ARGV[0]) mbox.each { |mail| call p(mail) } using the command line: $ ruby test.rb '|mail| mail.get_from =~ /test header/ and puts mail' or something like that? Renald