| Data-Maker documentation | view source | Contained in the Data-Maker distribution. |
Data::Maker::Value - A value generated by a Data::Maker::Field
my $record = $maker->next_record;
my $first_name = $record->{first_name}; # <=== A Data::Maker::Value object
# automatic stringification
print "First name: $first_name\n";
# or, value() for backwards compatibility
printf "First name: %s\n", $first_name->value;
This is a lightweight wrapper for Data::Maker field values that allows the Data::Maker internals to run a bit faster than they would without it, at the same time maintaining backward compatibility.
Returns the boxed value.
Philip Garrett (philip.garrett@icainformatics.com)
Copyright 2010 by Philip Garrett. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Data-Maker documentation | view source | Contained in the Data-Maker distribution. |