in reply to what is the meaning of $| in perl?

Hello, you'll find very intersting this one and that too

HtH
L*
PS consider wrap ypur code in tags as stated here
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.