$line =~ s/[ \011]*\015$//; # Chop trailing whitespace and DOS CRs
I'm pretty familiar with regular expressions but this just makes no sense to me. I don't see how the pattern to be replaced translates to whitespaces and carriage returns. Are the '011' and '015' ascii codes? It looks like they are escaped, too. Still, this makes no sense to me, especially because these 011 is a vertical tab and 015 is a 'shift in'. Can someone please explain? Thanks.
In reply to Quickie code question by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |