join on the fly while reading the files in line by line?
This is very easy to do using redo:
$ echo 'somedata data blah \ continuation of previous line \ another continuation of previous line \ stand alone line stand alone line multiple line \ continuation of multiple line' | perl -e' while ( <> ) { if ( s/\\\n// ) { $_ .= <>; redo; } print; } ' somedata data blah continuation of previous line another continuation +of previous line stand alone line stand alone line multiple line continuation of multiple line
In reply to Re: Question on parsing a text file.
by jwkrahn
in thread Question on parsing a text file.
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |