The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Repository::Simple::Value - Tie interface to property values

DESCRIPTION

This class is used for access a property value. This class is never instantiated directly, but retrieved from a property via the value() method:

  my $value = $property->value;
  my $scalar = $value->get_scalar;
  my $handle = $handle->get_handle('<');

METHODS

$scalar = $value->get_scalar

Retrieve the value of the property as a scalar value.

$handle = $value->get_handle
$handle = $value->get_handle($mode)

Retrieve the value of the property as an IO handle. The $mode argument is used to specify what kind of handle it is. It should be one of:

  • "<"

  • ">"

  • ">>"

  • "+<"

  • "+>"

  • "+>>"

If the value cannot be returned with a handle in the given mode, the method will croak. If $mode is not given, then "<" is assumed.

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT

Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.