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
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...
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
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 +=...
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...
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...
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...
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.