>>>>> "M" == Matt <lm7...@gmail.com> writes:
>>> You probably want something like: >>> >>> substr $x, 10, -10, " ... " if length $x> 25; >> >> Very neat Paul. My hat's off to you. M> Worked perfectly too. Thanks Paul. the real question is whether you read the docs on substr and understand how that code works. getting code for a problem isn't going to help you learn perl better unless you read the docs and understand what substr does and its options. substr is a core function that all experienced perl hackers know and you should too. did you read its documentation? do you understand it? uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/