in reply to String manipulation
As a start you could find out which char it is:
# assuming the string is in $data: print ord(substr($data, 0, 1)), "\n";
Then when you know exactly which character it is, you can remove it with a regular expression.
The not-so-safe method would be to remove any leading non-space characters:
$data =~ s/^[^ ]+//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: String manipulation
by ikegami (Patriarch) on Aug 07, 2007 at 20:41 UTC | |
|
Re^2: String manipulation
by bajangerry (Sexton) on Aug 07, 2007 at 20:59 UTC | |
by bajangerry (Sexton) on Aug 07, 2007 at 23:30 UTC | |
by moritz (Cardinal) on Aug 08, 2007 at 06:58 UTC |