in reply to Increaing a field size for a record
A very simple way to insert spaces is:
This will insert 39 spaces after the 15th character. If your counting starting at 1, test that it is going into the correct location :-)my $record = <$fh>; # read the record substr( $record, 15, 0, " " x 39 ); # insert 39 spaces
Good Luck!
"Well done is better than well said." - Benjamin Franklin
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Increaing a field size for a record
by Thomas Kennll (Acolyte) on Oct 16, 2012 at 19:27 UTC | |
by flexvault (Monsignor) on Oct 17, 2012 at 13:29 UTC |