in reply to Re: Re: Just a simple task
in thread Just a simple task

Have you tried testing for the definedness (is that a word? :) of the $id variable at the time of printing? Perhaps it's not that Perl won't print it as much as it is there is nothing to print?