Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [Alex] Show Last Links. This is correct?: Edit Log

Here is the list of edits for this post
Re: [Alex] Show Last Links. This is correct?
I don't mean to question da big chief but isn't that a bit lengthy?

Quote:
$link->{Title} = (length $link->{Title} > 30) ? substr($link->{Title},0,30) . ' ...' : $link->{Title};

Wouldn't this do the same job.....

$link->{Title} = s/^(.{30}).*$/$1.../;

If it is under 30 chars the whole thing will be shown otherwise the condensed version will be shown?

Last edited by:

PaulWilson: Sep 18, 2001, 7:43 PM

Edit Log: