Thenk you,
1- You give me very muche reading. Thank you. I have read most of that many times and I am lost in it, and this is the reason that I ask.
2- OK, I know that there are problems with global variable. Sure I can declare $lig in the sub. But my question is generic : why it does not work ?