What does "Scalars leaked: 1" mean?

I just got a warning "Scalara leaked: 1" nine times.

I guess this came from a streaming boot program that uses 9 threads with module threads, threads :: shared and Thread :: Queue. This is on WinXP, Active State 5.8.8.

Any idea what that means? This program has been working for some time without such warnings, and I re-run the program with the same (easy) work that caused the warnings, but this time no warnings.

I am not trying to start threads at compile time unless this is what Thread :: Queue does internally. My first threaded call after processing Getopt :: Long.

+8
perl
source share
1 answer

From this site:

Scalara leaked: 1 Slam! What is it! "Scalars leaked: 1". Well, yes, this is one of the remaining problems / features / errors of the Perl ithreads implementation. This especially happens when you start threads at compile time. From practical experience, I have to say that it seems pretty harmless. And compared with all the other "memory leaks" that occur due to copying of data-structures, there is probably not a lot of leaked scalar. Again, the error message is likely to be an error. "

+3
source share

All Articles