Javeed Sar wrote:
i split one perl script, it got split ,i combined it , it's not working???
Though the siza are same.
what is the problem.

Mak sure you completely read the posts. When you asked how to join them back together I said the following would work:

perl -e 'print <>' splitfile.1 splitfile.2 splitfile.3 splitfile.4 splitfile.5 > splitfile.new.txt

but I also said this:

note the ordering is different, because the program below (snipped for this post) sends the next record to the next filehandle in a circle. The above one liner dumps the contents of the files sequentially. But if your datafile implementation is sound that shouldnt matter.

Hence your result file was the same size, but not the "same file".

If you need to get the same file back out and you used the Text::Splitfile package I posted, you need to do the reverse of what it does. Create an array of the filehandles, loop over them in a circle, and print each line to your one big datafile.

Todd W.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to