in reply to tagging question
If I understand your question properly...
$string = "il asdfasdfasdf"; $string =~ s/([\S]{2})//; $tag = "<$1>"; $string = $tag . "$string ". $tag
Would do what you're asking for. I'm sure a true perl master could condense that into 1-2 lines, but I'm just a little perl footsoldier right now...
Peace,
LassiLantar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: tagging question
by Ovid (Cardinal) on Jul 23, 2004 at 23:30 UTC | |
by LassiLantar (Monk) on Jul 23, 2004 at 23:33 UTC | |
|
Re: tagging question
by b10m (Vicar) on Jul 23, 2004 at 23:58 UTC | |
by LassiLantar (Monk) on Jul 24, 2004 at 04:03 UTC | |
|
Re^2: tagging question
by beable (Friar) on Jul 24, 2004 at 01:16 UTC | |
by LassiLantar (Monk) on Jul 24, 2004 at 04:12 UTC |