From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <3DCD7052.5080207@fioc.kz> Date: Sun, 10 Nov 2002 02:30:10 +0600 From: Ilya Palagin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: community@altlinux.ru Subject: Re: [Comm] Re[2]: [Comm] =?KOI8-R?Q?=F3=CF=D2=D4=C9=D2=CF=D7=CB=C1?= =?KOI8-R?Q?_=D3=D4=D2=CF=CB_=C9_=D3=D4=C1=D2=D4_=D0=D2=CF=C7=D2=C1?= =?KOI8-R?Q?=CD=CD?= References: <200211091834.54216.community@netaddres.ru> <3DCD68BF.8050100@fioc.kz> <8126314177.20021110001502@udm.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: ASA wrote: > Hello Ilya, > > Saturday, November 9, 2002, 11:57:51 PM, you wrote: > > IP> File.open(ARGV[0], "r") do |f| > А само имя скрипта, значит, будет под номером "-1" ? > Цитирую классика: There's a gotcha here for all you C programmers---ARGV[0] is the first argument to the program, not the program name. The name of the current program is available in the global variable $0.