in reply to Re: How to split a document at a column
in thread How to split a document at a column

Two bugs:

Fix:

while (<>) { chomp; substr($_, 24, 0, ' ') if length() > 24; print("$_\n"); }
perl -i~ -ple "substr($_, 24, 0, ' ') if length() > 24" file

Tested.