I have ActiveStatePerl5.8.6 installed in my machine. I want to do the following.
I have a file namely "f1" which contains the data like below:
attribute01
attribute02
attribute03
attribute04
Now i want to open the file "f1" and read the each line and output to some other file say "outfile". The outfile should be like below:
#define attribute01 1
#define attribute02 2
#define attribute03 3
#define attribute04 4
How can i do this using Perl script.
I have a file namely "f1" which contains the data like below:
attribute01
attribute02
attribute03
attribute04
Now i want to open the file "f1" and read the each line and output to some other file say "outfile". The outfile should be like below:
#define attribute01 1
#define attribute02 2
#define attribute03 3
#define attribute04 4
How can i do this using Perl script.