in reply to How use $^M?
Hi,
"perl lack global variable/memory for use"
Please see MCE::Shared which works with all perls back to 5.8 and on all OSes and under threaded and non-threaded perls.
Hope this helps!