I thought that @_ meant the list passed to the sub, so I used $_ when I passed a single element. My bad, I should have read perlsub better (or simply reread it).
I used your new regexp together with the suggestions below.
In reply to Re^2: Wrong content of variable passed to sub
by olafmar
in thread Wrong content of variable passed to sub
by olafmar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |