in reply to while loop break when sub call

Did you really name your function "sub"?

That's a bad idea, sub is a reserved word.

Cheers Rolf

PS: Je suis Charlie!

Replies are listed 'Best First'.
Re^2: while loop break when sub call
by papillon (Initiate) on Jan 09, 2015 at 15:28 UTC

    no, I did not do that mistake, it was just for the example. Should have named it to something else anyway