Gossamer Forum
Quote Reply
Number_of_Links
I want to add a comma to the Number of Links displayed by the <%Number_of_Links%> tag.

I would like to do this by adding a global, and using the following routine:

sub {

my $numlinks = ####;

$numlinks = &commify($numlinks);

sub commify {
local $_ = shift;
1 while s/^([-+]?\d+)(\d{3})/$1,$2/;
return $_;

}

return $numlinks;

}

I just need some help in what to put where I have #### in the code -- the actual code to select the number of links for a particular category. I know the rest of my routine works as I use it elsewhere.

Your help is appreciated,

Ryan
Subject Author Views Date
Thread Number_of_Links relledge 2804 Jun 1, 2003, 11:59 AM
Thread Re: [relledge] Number_of_Links
Paul 2716 Jun 1, 2003, 1:28 PM
Thread Re: [Paul] Number_of_Links
relledge 2701 Jun 1, 2003, 1:38 PM
Post Re: [relledge] Number_of_Links
Paul 2691 Jun 1, 2003, 4:28 PM