Are you doing this for the halibut? ha!



-A

-----Original Message-----
From: dblack / rubypal.com [mailto:dblack / rubypal.com]On Behalf Of
dblack / wobblini.net
Sent: Thursday, April 27, 2006 3:26 PM
To: ruby-talk ML
Subject: Re: Fishing in Ruby

Hi --

On Fri, 28 Apr 2006, A Fisherman wrote:

> sea =<<END_OF_SEA
>
>> <}}}}*>           ><}}}}*>        ><}}}}*>
>       ><}}}}*>
>                ><}}}}*>    ><}}}}*>
>   ><}}}}*>
>
> END_OF_SEA
>
> fish_caught = sea.scan(%><}}}}*>)
> "I got #{fish_caught.size} fish!" # => "I got 7 fish!"

But does it scale?


David

--
David A. Black (dblack / wobblini.net)
Ruby Power and Light, LLC (http://www.rubypowerandlight.com)

"Ruby for Rails" PDF now on sale!  http://www.manning.com/black
Paper version coming in early May!