Test::Builder::IO::Scalar - A copy of IO::Scalar for Test::Builder
This is a copy of IO::Scalar which ships with Test::Builder to support scalar references as filehandles on Perl 5.6. Newer versions of Perl simply use open()
's built in support.
Test::Builder can not have dependencies on other modules without careful consideration, so its simply been copied into the distribution.
This file came from the "IO-stringy" Perl5 toolkit.
Copyright (c) 1996 by Eryq. All rights reserved. Copyright (c) 1999,2001 by ZeeGee Software Inc. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Class method. Return a new, unattached scalar handle. If any arguments are given, they're sent to open().
Instance method. Open the scalar handle on a new scalar, pointed to by SCALARREF. If no SCALARREF is given, a "private" scalar is created to hold the file data.
Returns the self object on success, undefined on error.
Instance method. Is the scalar handle opened on something?
Instance method. Disassociate the scalar handle from its underlying scalar. Done automatically on destroy.