in reply to Re^15: global var
in thread global var

This part of code shows 0 or undefiend at ...

No it doesnt

This is the same as before, you post a fragment of code that does not compile, does not run, does not show the problem

Maybe it shows the problem on your machine, where the code is complete and compiles and runs,

but over here on my machine it shows that you posted incomplete code which cannot help you fix your problem

huck guesses that you're loading the wrong .pm file but thats too generous on his part

The problem is you dont want to do what is required to solve the problem, which is keep deleting parts of code which have nothing to do with the problem, until you're left with a short piece of code which does reproduce the problem

But you keep posting fragments and hoping that will help you solve it

Thats a weird way to ask for help, here is a joke for that

Q: I'm hungry but there is no food in the refrigerator?
A: I went shopping the refrigerator is overfull, there is cheese, apples.....
Q: I looked again, all I found was a bowl of water
A: Ok show me where you looked
Q: Here
A: Thats the toilet bowl in the bathroom, the refrigerator is in the kitchen, follow me
Q: but the sink is over here next to the water bowl
A: Thats the bathroom sink not the kitchen sink, kitchen is over here
Q: but the big sink is over here
A: Thats the bathtub in the bathroom, kitchen is over here
Q: I can see myself in the kitchen window
A: Thats the bathroom mirror, the kitchen window is see through
Q: but look at all these nice kitchen floor tiles
A: those are bathroom floor tiles because they're in the bathroom
Q: but look at this nice kitchen towel
A: if its in the bathroom its a bathroom towel
Q: I'm talking about the white paper towel
A: thats toilet paper paper towels are thicker
Q: but look at all these little scrub brushes arent they cute
A: yes the tooth brushes do look cute in the bathroom, they would be weird in the kichen
Q: ok mom lets eat