i have one hash tables that contains data stings and information. I have one c file , i need to search the file and if i found stings in the c file i need to add information at the top of the c file. I am very beginer to perl, i have written code like this
open (my $code , "<", 'c.c');
my %strings = ('string1'=>"information \
my $test_string="(" .join("|", keys %strings).")" ;
this code adding the information before the string, i need to add at the top of the c file. what should i do in this case.