Hi!

I have found a page (http://www.zd-lj.si/) that has a header variable
$h->header('X-Meta-generator') or $h->header('X-Meta-author') containing a
\n char.

I wanted to remove that character from a variable with this:
$h->header('X-Meta-generator') =~ s/\n//g; # remove all newlines!
$h->header('X-Meta-generator') =~ s/\r//g; # remove all carridge returns!
$h->header('X-Meta-generator') =~ s/\t//g; # remove all tabs!

But the program terminater returning an error:
Can't modify non-lvalue subrotine call at get.pl line....

How to remove all \n, \r and \t from file headers?

Tnx, Matej

Reply via email to