On Wed, Sep 26, 2018 at 9:40 PM ToddAndMargo <toddandma...@zoho.com> wrote:
> Would you take a swipe at "$limit = Inf" > In the signature like that it is just a default. If you pass in a $limit parameter, that gets used like "a b c d e".words(3) sets $limit to 3, limiting words() to 3 words. If you don't pass anything in, it gets the default value, in this case Inf, which is greater than the greatest integer. If you called "a b c d e".words(Inf) it would be the same thing as not passing any anything. If the signature said "$limit = 3", then the default would be 3, and calling "a b c d e".words() or "a b c d e".words would be the same as saying "a b c d e".words(3) Inf is kind of special because no matter how many words get parsed out, it will keep going. The limit will never read Inf because Inf is infinite! It makes a great default, because we don't want to ever stop sending more words if you didn't specify a limit. Curt