in reply to Most efficient way to remove some text from a string
You haven't shown the relevant parts of the code you've already written, so my advice remains pretty generic:
To trim the string, see substr.
To find the number of levels and get at the elements, then see split.
To print bullet points, see print and maybe *, or, if your terminal is unicode-aware, any of the fancy Unicode glyphs. Also see \N{}, respectively print "\N{BULLET}".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Most efficient way to remove some text from a string
by adamZ88 (Beadle) on Dec 06, 2016 at 20:44 UTC | |
by poj (Abbot) on Dec 06, 2016 at 21:26 UTC | |
by adamZ88 (Beadle) on Dec 07, 2016 at 01:51 UTC | |
by hippo (Archbishop) on Dec 07, 2016 at 09:57 UTC | |
by adamZ88 (Beadle) on Dec 07, 2016 at 19:18 UTC | |
|