in reply to Parsing Text into Arrays..
I must admit I haven't taken the time to examine your code (boss skulking around), but the layout of your lpc-array looked eerily like a plain perl anonymous array, except for brace-style. Maybe my function combined with some input validation can give you an elegant solution...sub lpcarray_to_array { my $lpc = shift; $lpc =~ s/\(\{/\[/g; $lpc =~ s/\}\)/\]/g; return eval $lpc; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing Text into Arrays..
by ihb (Deacon) on Jan 20, 2003 at 16:22 UTC | |
|
Re: Re: Parsing Text into Arrays..
by castaway (Parson) on Jan 20, 2003 at 14:06 UTC | |
by demerphq (Chancellor) on Jan 21, 2003 at 12:26 UTC | |
by castaway (Parson) on Jan 22, 2003 at 07:56 UTC |