"be consistent" | |
PerlMonks |
Modifying data in variable length fileby nsyed (Novice) |
on Apr 27, 2011 at 22:18 UTC ( [id://901671]=perlquestion: print w/replies, xml ) | Need Help?? |
nsyed has asked for the wisdom of the Perl Monks concerning the following question: Hi, Sorry for asking a very basic question. I am trying to do the following with a test.DAT file. The file contains data in various columns that I want to replace to a constant or a random value. However in some cases there might be no data for that particular field length. Problem: Start Colum = 161 End Column = 190 , If there is text set to value MYTEXT Start Column = 221 End Column = 230 , If there is text set to value 01/01/1980 Start Column = 231 End Column = 245 , If there is text set to value random 15 numbers And leave everything else unchanged. Thanks you so much in advance.
Back to
Seekers of Perl Wisdom
|
|