http://www.perlmonks.org?node_id=69680


in reply to Re: Re: Re: Shortest -return index of element in array- sub
in thread Shortest -return index of element in array- sub

And this differs from Re: Re: Shortest -return index of element in array- sub exactly how?

Oh right. You eliminated spaces.

And for the shorter recursive solution see Re: Re: Shortest -return index of element in array- sub.

So tell me, are you just trying to get back up to monk so you can be a more effective troll?

UPDATE
Whoops!

I misread your user name by accident as mr_leisure and said rather unkind things. I still don't think that regurgitating everyone else's solutions is great, but it does not deserve the harshness that I gave that post.

Please accept my apologies for that.

  • Comment on Re (tilly) 4: Shortest -return index of element in array- sub

Replies are listed 'Best First'.
Re: Re (tilly) 4: Shortest -return index of element in array- sub
by mr_mischief (Monsignor) on May 31, 2001 at 02:17 UTC
    Apology accepted. In golf, I like to play with what the parser recognizes with whitespace and without. I'll try to credit other people from now on when I use their ideas. I thought the thread was short enough that it would be obvious where the idea was from. I don't intend to steal ideas, just borrow. I'll make it more clear that's what I'm doing. BTW, I'm not fond of trolls, either. You can find me remarking on such osts over on clpmisc quite a bit. Come to think of it, you can find me on clpmisc quite a bit in general. Chris BTW, here's my first JAPh, just so there'll be some code in my node. Comments welcome.
    $z = int(rand(1000)+1); $y = 'reverse ' x $z; eval eval qq{$y "@{['\"n\\\\.rekcaH','lreP','rehtonA','tsuJ\"','tnirp' +]}"}