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

Re: [FWP] 100 point words.



On Fri, Jul 23, 1999 at 03:22:42PM -0400, WORENKLEIN, David, GCM wrote:
> Sure.
> 
> perl -ne'$t+=ord($&)-ord"`"while/./g;print if$t==100;$t=0'
> 
> I'm just not sure why I need the () around $&.
> 

Without it, the code parses as 

ord($&-ord"`")

because subtraction has higher precedence than list-ops.


Ronald

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