[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Fun With Golf



Joey Mitchell Comeau wrote:
> Here's mine.
> 
>       sub fifth($) {(split(/\W/,shift))[4]};
> 
> This one ok?

That  %%!   won't )))"//ß    find +++    the    fifth     word!

(\W+ is probably better, IMO.)

Cheers,
Philip

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe