
yick
New User
Aug 26, 2009, 1:14 AM
Post #1 of 3
(161 views)
|
|
Need help on removing contents on a file Selectively
|
Can't Post
|
|
Hi Gurus, I'm very new on Perl and even newer in terms of file concent modification. I'm currently working on a script to selectively remove contents from a file. The file concent goes like this: Domain A { } Domain B { } Domain C { Yes } How can i program a perl script to remove Domain A and Domain B, which contains nothing within bracket but preserve Domain C, which has content within the bracket? After executing the script, i will only have Domain C { Yes } Thank you very much for your help. -Yick the newbie
|