in reply to Printing the variable makes the next match code work. Why?
Using perl 5.1? Surely you do not mean perl 5.001 released 1995-Mar-13.
Jenda Enoch was right! Enjoy the last years of Rome.