Scalar::Footnote

Scalar::Footnote is a Perl module that can attach hidden scalars to references.
Download

Scalar::Footnote Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steve Purkis
  • Publisher web site:
  • http://search.cpan.org/~spurkis/TAP-Formatter-HTML-0.04/lib/TAP/Formatter/HTML.pm

Scalar::Footnote Tags


Scalar::Footnote Description

Scalar::Footnote is a Perl module that can attach hidden scalars to references. Scalar::Footnote is a Perl module that can attach hidden scalars to references.SYNOPSIS use Data::Dumper; use Scalar::Footnote; my $obj = Foo->new; # attach invisible footnote to $obj: $obj->Scalar::Footnote::set( my_key => 'my footnote' ); print Dumper( $obj ); # get it back: my $note = $obj->Scalar::Footnote::get( 'my_key' ); print "footnote: $noten"; # remove it: my $note = $obj->Scalar::Footnote::remove( 'my_key' );Scalar::Footnote lets you attach scalar footnotes to an object (or any kind of reference, really) that are essentially invisible from Perl. For example, if you try dumping an object that has a footnote attached to it, you won't actually see the footnote: my $obj = bless , 'Foo'; $obj->Scalar::Footnote::set( 'Foo' => 'foo note' ); print Dumper( $obj );prints: $VAR1 = bless , 'Foo';You can of course still access the footnote with Scalar::Footnote::get. Requirements: · Perl


Scalar::Footnote Related Software