Re: Best way to translate parts of strings

2015-07-24 Thread Simon Reinhardt
Hi Gary, > Unfortunately some strings have a 'S' instead of a 5 or a 'B' instead of a 8 > > The fields are of the format > > Registration XX99XXX > Stock no XX9 > VIN XX9 > > I've been experimenting with translate to convert the letters to the correc

Best way to translate parts of strings

2015-07-24 Thread Gary Stainburn
Hi I'm still extracting text from OCR generated documents. I've managed to extract likely fields for registration numbers, stock numbers and VINs. Unfortunately some strings have a 'S' instead of a 5 or a 'B' instead of a 8 The fields are of the format RegistrationXX99XXX Stock no

Re: convert linear array to nested structure

2015-07-24 Thread Simon Reinhardt
Am 21.07.2015 um 22:35 schrieb Jim Gibson: > That is an unique data structure and transformation requirement (as most are), so you are not likely to find an existing set of code to do exactly what you want. However, the transformation should not be too difficult, so you should try to code up somet

perlembed: Interrupt call_pv

2015-07-24 Thread Fedor Sumkin
Hello, I am using Perl to embed it in C application( http://perldoc.perl.org/perlembed.html). I need to have a possibility to interrupt perl function invoked from C code via `call_pv`/`call_*` methods. I tried achieving this via destroying running perl context, but this resulted on fatal error "