in reply to Re: grep for last 45 days
in thread grep for last 45 days

The code worked for me. The only trick, it would appear, is to first run ln -s /usr/bin/ruby /usr/bin/perl.

I was initially inclined to downvote the node for the horrible blasphemy of posting non-Perl code in the Monastary. Then I saw in my mind's eye the OP pasting the code into a file and trying to run it... what the... missing semicolon? I thought these guys knew their stuff!.

So ++Fletch. I have Programming Ruby sitting on my bedside table, but have only browsed it so far. Ruby appears to be popular in Asia, and I really enjoyed some dabbling I've done in Smalltalk, so it might be right up my alley.

Replies are listed 'Best First'.
Re^3: grep for last 45 days
by Fletch (Bishop) on Mar 13, 2005 at 13:01 UTC

    Blasphemy for not using perl? Remember: TMTOWTDI, and some of the W's don't even involve perl . . . :)

    But yes that's kind of the point of using Ruby, especially if it's got a whiff of that homework smell about it (as this did) or if they've not shown any attempt at making an effort (again, as this did). Much of Ruby's close enough to Perl conceptually that you can (almost) see the equivalent Perl if you squint hard enough. Not to mention it gives an excellent chance for me to practice my Ruby.