[#4754] Now,I am starting ruby. — mamoru@... (Mamoru Matushita)

先日、初めて投稿したつもりだったのですが間違えて

14 messages 1997/10/02

[#4891] mixin - singleton method inheritance, const etc... — shugo@... (Shugo Maeda)

前田です。

13 messages 1997/10/10

[#5000] ruby 1.0-971015 released — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

14 messages 1997/10/15

[#5056] RubyでOODB — hisanori@...

松尾です。

20 messages 1997/10/20
[#5057] Re: RubyでOODB — matz@... (Yukihiro Matsumoto) 1997/10/20

まつもと ゆきひろです

[#5065] Re: RubyでOODB — hisanori@... 1997/10/20

松尾です。

[#5066] Re: RubyでOODB — matz@... (Yukihiro Matsumoto) 1997/10/20

まつもと ゆきひろです

[ruby-list:4839] Re^2: cgi-lib.rb

From: 青山 和光 <PXN11625@...>
Date: 1997-10-07 23:00:09 UTC
List: ruby-list #4839
まつもとさん、はじめまして。

ruby は素晴らしいですね。今後の発展が楽しみです。

>>[ruby-list:4821] Re: cgi-lib.rb
>>From: matz@netlab.co.jp (Yukihiro Matsumoto)
>>
>>すいません.ヒアドキュメントは1.0にはありません.1.1からにな
>>ります.今公開しているドキュメントは1.0のものですから,載っ
>>てないわけです.

ああ、そうだったんですか。
では、1.1 の方を使ってみます。

cgi-lib.rb は、昨日作って今日見てみたら、おかしな書き方をしてしまった
所が見つかりました。追加差分です。


*** cgi-lib.rb.org	Tue Oct 07 09:07:59 1997
--- cgi-lib.rb	Wed Oct 08 04:08:51 1997
***************
*** 17,23 ****
      require "shellwords.rb"
      input = ''
      query_string = ''
!     if ARGV[1] then
        input = ARGV.join(' ')
      else
        STDERR.print "(offline mode: enter name=value pairs on standard input)
\n"
--- 17,23 ----
      require "shellwords.rb"
      input = ''
      query_string = ''
!     if not ARGV.empty? then
        input = ARGV.join(' ')
      else
        STDERR.print "(offline mode: enter name=value pairs on standard input)
\n"
***************
*** 29,35 ****
      input.gsub! /\\&/, '%26'
  
      words = shellwords(input)
!     if words then
        if words.join('') =~ /=/ then
          query_string = words.join('&')
        else
--- 29,35 ----
      input.gsub! /\\&/, '%26'
  
      words = shellwords(input)
!     if not words.empty? then
        if words.join('') =~ /=/ then
          query_string = words.join('&')
        else


青山 和光 Wakou Aoyama <pxn11625@niftyserve.or.jp>

In This Thread

Prev Next