Posted on 2005-08-26 16:27:26-07 by sanug
Test of Log::StdLog
How does the passing of an undefined reference to a scalar in
our $FILE_CONTENTS; use Log::StdLog { file => \$FILE_CONTENTS, level => 'all' };

allow the open to work?
I always thought that a string with a filename was required.

Is there another set of documentation that defines what is going on here?

I have played with the code to see what is going on.
It appears that each time print occurs, it appends to the end of the string pointed to the reference.
Direct Responses: 944 | Write a response
Posted on 2005-08-28 23:29:37-07 by sanug in response to 938
Re: Test of Log::StdLog
It appears that each time print occurs, it appends to the end of the string pointed to the reference.

should have been

It appears that each time print occurs, it appends to the end of the string pointed to by the reference.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.