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
The point of this function is to right-align numbers in table-data cells and
keep everything else left-aligned. Note that this is what Excel does by
default (if you type in a number in Excel, it aligns to the right; if you
type in a string, it aligns to the left).
Technically, it should be use in
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