can anyone help me with the following problem:
The input is for example:
http://www.ad.nl/actueel/ZZZK51QP4DC.html&May occure often &
The output should be:
url1=http://www.ad.nl/actueel/ZZZK51QP4DC.htmlitem1=May occure often
And this for more lines.
So the number must increase for the next line.
$vervang =~ s/http/url1=http/;
$vervang =~ s/&/item=/g;
print $vervang;
@buffer = $vervang;
print @buffer;
foreach $teller(0..15)
{
$telop{"http"} = 'url' . ($teller+1) . '=http';
print $telop;
}
foreach $vervang(@buffer)
{
$vervang =~ s/& http/$telop/gi;
print $vervang;
}
This is the source, but it doesn't do what it should.
Hope to hear from you very soon.