From: Axel Etzold Date: 2008-09-11T17:40:23+09:00 Subject: Re: How to check if a webpage exists -------- Original-Nachricht -------- > Datum: Thu, 11 Sep 2008 17:15:39 +0900 > Von: Davide Benini > An: ruby-talk@ruby-lang.org > Betreff: Re: How to check if a webpage exists > Thanks for your super-fast answer :) > Yet, none of this works on my system; to be double sure I copied and > pasted. > In a script, I get "I'm ok" even when a page does not exist; in IRB , I > always get "sorry can't do" > Any suggestion? > Davide Dear Davide, hmmm ... the suggested code works on my system (Ubuntu 8.04 /ruby 1.8.7.p-22), both for scripts and on irb. How do you enter the code on irb ? Do you do begin (enter) line 1 (enter) rescue (enter) line2 (enter) end (enter) ? I tried instead begin ; line1 ; recue ; line 2; end (enter) This caused irb to work correctly. Best regards, Axel -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx