Please tell me the code in perl.....
i have a file in which different blocks are there like
111\n
222\n
333\n
444\n
555\n
666\n
777\n
aaa\n
bbb\n
ccc\n
ddd\n
xxx\n
yyy\n
zzz\n
now i have to search for a string say "ccc" and have to remove the entire block so that output of the file should be
111\n
222\n
333\n
444\n
555\n
666\n
777\n
xxx\n
yyy\n
zzz\n
Can we modify the same file or we have to create a new file...?