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 SkipVought 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: *

  1. Thorne44

    Need script to write to XML doc

    Ok Whats the operating system on the server? The line #!c:\perl\bin\perl.exe refers to a windows server This line is custom for each machine depending on where the perl files are kept My linux server uses the line #!/usr/bin/perl Try using my line if it's linux Bruce
  2. Thorne44

    Need script to write to XML doc

    Ok I can see your problem I think In the program if ($line == "<expression casesensitive=\"no\" type=\"regex\" onmatch=\"score += 1\">zyxxxyz</expression>") { print XML "<expression casesensitive=\"no\" type=\"regex\" onmatch=\"score += 1\">$FORM{email}</expression>" Now if I look...
  3. Thorne44

    Problem with LWP::UserAgent when retrieve page...

    I usually find that notepad doesn't understand \n\r You could try replacing all cases on \r with nothing That would get rid of the boxes in notepad I suspect Bruce
  4. Thorne44

    Need script to write to XML doc

    If you attach the form I'll run it here I think I can finally see what you want to do The file produced should be <XML> <expression casesensitive="no" type="regex" onmatch="score += 1">zyxxxyz</expression> <expression casesensitive="no" type="regex" onmatch="score +=...
  5. Thorne44

    Need script to write to XML doc

    Ok so you want to search for a line like <expression casesensitive="no" type="regex" onmatch="score += 1">zyxxxyz</expression> and replace it with zyxxxyz ? What about $str =~ s/<expression[^\>]*>([^\<]*)\<\/expression\>/$1\n\r/g; This line should search a string and remove the xml stuff...
  6. Thorne44

    Need script to write to XML doc

    What is zyxxxyz? Is it an email address with an AT symbol in it? The problem doesn't sound complicated but I could use more information about the input and output. Are you trying to get this line <expression casesensitive="no" type="regex" onmatch="score += 1">zyxxxyz</expression> to...
  7. Thorne44

    Perl Proxy

    Hi I'm using simple script to allow a site to go and fetch it's content from another site and display it as it's own but I'd like the script to pass it's ENV varibles to original site so that site can log it properly. I'm currently passing cookies already but I lose the IP address, browser...

Part and Inventory Search

Back
Top