Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by vincebrown

  1. vincebrown

    die function

    The question was originally about catching and the question is still about catching. I printed the code to put the catch in context.
  2. vincebrown

    die function

    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...
  3. vincebrown

    die function

    Thanks for the help.
  4. vincebrown

    die function

    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.
  5. vincebrown

    File creation

    Simple as that! Cheers.
  6. vincebrown

    File creation

    Is it possible to create a file with a particular extension using a perl script? Thanks.
  7. vincebrown

    Editing a Perl File

    I'm having problems with the syntax, because it contains symbols that Perl recognises.
  8. vincebrown

    Editing a Perl File

    Hi. I've got a perl file that I want to edit using another perl script. I want the script to place '; #' when it sees '@ARGV[2])'. Can anybody help?
  9. vincebrown

    Replace

    Thanks KevinADC.
  10. vincebrown

    Replace

    Thanks, so much. You are a perl legend!
  11. vincebrown

    Replace

    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...
  12. vincebrown

    Search and Replace Cont

    Cool. thanks. I'm very new to Perl, how would it fit into the whole script? I know I open the filehandle first.
  13. vincebrown

    Search and Replace Cont

    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>
  14. vincebrown

    search and replace

    Thanks. That'a brilliant!
  15. vincebrown

    search and replace

    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/>

Part and Inventory Search

Back
Top