input file looks like:local $/= "# input for "; while (<FILE1>) { s/1\.00/5/g if /Data\b\n/; print; }
# input for Data 1.00 0.99 0.92 1.00 -0.22 0.61
But now can i adjust the code so that it only edits 1.00 on first line only. This file goes on with Data1 Data2 etc with different pairs of lines. Thanks
20040331 Edit by Corion: Added formatting, code tags
In reply to Edit varaibles in file by indie_campbell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |