in reply to Substring consisting of all the characters until "character X"?
should do.my $i = 2; substr($fullstring, $i, index($fullstring, ' ', $i) - $i);
Or use a regexp.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Substring consisting of all the characters until "character X"?
by jwkrahn (Abbot) on Mar 07, 2011 at 13:01 UTC | |
|
Re^2: Substring consisting of all the characters until "character X"?
by TheMartianGeek (Acolyte) on Mar 07, 2011 at 14:50 UTC |