Forsome reason it still isn't working. Here's the code, any ideas?
#!/usr/bin/perl
print STDOUT "Please enter the full path of the make directory in your view (e.g.
C:\\cc\\views\\vb2659_view16\\leopard_system\\system-build\\make):\n";
$build = <STDIN>;
chomp $build;
print STDOUT "Please...
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>
Thanks a lot. The problem is is that it's placing it after the closing tag. Any ideas? See below.
<PreprocessorFlags></PreprocessorFlags>
/U_CPPUNWIND
<IncludeOptions/>
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.