Hi everyone. I'm trying to use the die function to throw an error when an inputted path is wrong, however it's not throwing anything. Can anyone tell me if the line of code below is correct:
open FILE, "$file" || die "Can't open: $! \n";
Thanks.
Can someone please show me how to make this script replace '<PreprocessorFlags/>' with '<PreprocessorFlags>U_CPPUNWIND</PreprocessorFlags>'. Thanks.
open FILE, 'C:/cpptest\C++TestFiles\Projects\Hello\Product\ProjectConfig.pcfg';
foreach(<FILE>){
push (@file,$_);
}
close FILE;
unlink...
Hi Guys, I posted a thread before where I wanted to know how to input a value between two xml tags. Can someone tell me how to simply replace a whole line in an xml file and replace it. Many thanks.
I need to replace: <PreprocessorFlags/>
With: <PreprocessorFlags>/U_CPPUNWIND</PreprocessorFlags>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.