I am looking for a perl function or easy way to shorten a long string
if its over X characters.

Say I have:

"Doe, John; 56943 Walnut Drive; SomeCity, NY"

It messes up the display of my html form.  So I would like it changed to:

"Doe, John; ..... meCity, NY"

Keep first 10 and last 10 characters and abbreviate all else.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to