in reply to how to shorten given string?
Also, see the substr doc from Perldoc.com.$str = "Ipod batteries for Apple Ipod PDAs. Replacement batteries from + Laptops for Less.com.url"; $short = substr($str, 0, 20);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to shorten given string?
by mellin (Scribe) on Oct 13, 2004 at 18:50 UTC | |
by JediWizard (Deacon) on Oct 13, 2004 at 18:56 UTC | |
by davido (Cardinal) on Oct 13, 2004 at 18:57 UTC | |
by bart (Canon) on Oct 14, 2004 at 01:57 UTC | |
by davido (Cardinal) on Oct 14, 2004 at 03:08 UTC | |
by bart (Canon) on Oct 14, 2004 at 03:12 UTC | |
by merlyn (Sage) on Oct 13, 2004 at 19:26 UTC | |
by Yendor (Pilgrim) on Oct 13, 2004 at 19:00 UTC | |
by mellin (Scribe) on Oct 13, 2004 at 19:25 UTC |