bfdi533 has asked for the wisdom of the Perl Monks concerning the following question:
char(123)+char(107)+char(112)+char(43)
I need to be able to parse this out and eval the char(xxx) statements at the same time. I am at a total loss. I am sure it will take a regex of some sort to split that out but that is beyond my meager regex skills at the moment. And then I believe it will take an eval of some sort but again, that escapes me. I have been at this for some time now and think I have lost my perspective.
Alas but I have no working code of any sort ...
A fresh view from someone out there?
Update:
The string to parse actually looks like this with "stuff" before it and "stuff" after it since it is part of a SQL statement:
select char(123)+char(107)+char(112)+char(43) from table
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: parsing and evaluating a string
by bobf (Monsignor) on Apr 24, 2006 at 05:46 UTC | |
by bfdi533 (Friar) on Apr 24, 2006 at 12:56 UTC | |
|
Re: parsing and evaluating a string
by davido (Cardinal) on Apr 24, 2006 at 05:42 UTC | |
by bfdi533 (Friar) on Apr 24, 2006 at 12:52 UTC | |
by davido (Cardinal) on Apr 24, 2006 at 15:15 UTC | |
|
Re: parsing and evaluating a string
by johngg (Canon) on Apr 24, 2006 at 11:12 UTC | |
|
Re: parsing and evaluating a string
by Fletch (Bishop) on Apr 24, 2006 at 13:12 UTC | |
|
Re: parsing and evaluating a string
by TedPride (Priest) on Apr 24, 2006 at 12:53 UTC | |
by johngg (Canon) on Apr 24, 2006 at 13:11 UTC |