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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vincebrown
  • Content: Threads
  • Order by date
  1. 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.
  2. vincebrown

    File creation

    Is it possible to create a file with a particular extension using a perl script? Thanks.
  3. 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?
  4. 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...
  5. 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>
  6. vincebrown

    search and replace

    Could someone please tell me how to write a script that searches an .xml file and insert a string between two xml tags? Thanks.

Part and Inventory Search

Back
Top