--- Yohanes Santoso <[EMAIL PROTECTED]> wrote:
> Yohanes Santoso <[EMAIL PROTECTED]> writes:
>
> > Edwin Pratomo <[EMAIL PROTECTED]> writes:
> >
> >> foo = %w(foo bar baz).collect do |fn|
> >> fn = "#{fn}.txt"
> >> fh = File.open(fn, 'r') rescue next nil
> >
> > fh = File.open(fn, 'r') rescue (next nil)
>
> Alternatively, since no-argument 'next' evaluates similarly as 'next
> nil':
>
> fh = File.open(fn, 'r') rescue next
very nice. thanks to om YS dan bapak Rie atas jawaban2nya.
rgds,
Edwin.
>
> YS
>
________________________________________________________
Kunjungi halaman depan Yahoo! Indonesia yang baru!
http://id.yahoo.com/