Re: Help needed with MAP expression

2000-12-08 Thread Matt Sergeant
On Thu, 7 Dec 2000, bari wrote: > Hi there, > Can any one help me what this MAP function does... > > map(/^[\.\d]+$/ ? td({-align=>'right'}, $_) : td($_), @$_) $_ contains an array ref. It loops through each entry in the array ref. If the entry is a number (by the above regexp's naive view of n

[OT] RE: Help needed with MAP expression

2000-12-07 Thread Ed Park
hat. But the author probably should have commented it. :) cheers, Ed -Original Message- From: bari [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 12:47 PM To: [EMAIL PROTECTED] Subject: Help needed with MAP expression Hi there, Can any one help me what this MAP function does.

RE: Help needed with MAP expression

2000-12-07 Thread jbodnar
It takes a reference to an array, and checks to see if each element of the arry only contains one or more "."s or digits, if it does it calls the td() function with parameters, returning the result, if not, it returns the element. I think. On 07-Dec-2000 bari wrote: > Hi there, > Can any one hel

Help needed with MAP expression

2000-12-07 Thread bari
Hi there, Can any one help me what this MAP function does... map(/^[\.\d]+$/ ? td({-align=>'right'}, $_) : td($_), @$_) I am really confused by this one... your help would be appreciated.. Thank You, - Bari -