If that's the case, you have several options:
{ local $/ = chr 0; chomp $your_string; } # or $your_string =~ s/\x00\z//;
I'm sure there are even more possibilites.
In reply to Re: Sensing of Null character
by moritz
in thread Sensing of Null character
by himanshu.padmanabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |