in reply to Converting fixed record length files to pipe delimited
It would be useful, if you told us what exactly is not working. A quick glance at your code shows that you got a somewhat un-perlish writing ;-)
Maybe you should make yourself comfortable with the split() command. You could do something like
which discardes the undef parts and let's you use the parts you wanted to have....($field1, $field2, undef, undef ...) = split /\s+/, $line;
| Regards | Stefan K |
|
|---|