[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: [NEWBIE] Extract all occurences from a text
From: David Alan Black <dblack () wobblini ! net>
Date: 2004-04-23 14:59:07
Message-ID: m3ekqeu4le.fsf () wobblini ! net
[Download RAW message or body]
Hi --
Kristof Bastiaensen <kristof@vleeuwen.org> writes:
> On Fri, 23 Apr 2004 05:08:00 -0700, David Alan Black wrote:
>
> > Or even more simply:
> >
> > lines = open(filename).grep(regex)
> >
>
> doesn't that leave the file open?
Sigh -- yes. That's a recurrent mental glitch I've got.
David
--
David A. Black
dblack@wobblini.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic