debian man page for class::makemethods::template::scalar

Query: class::makemethods::template::scalar

OS: debian

Section: 3pm

Links: debian man pages | All man pages

Forums: Unix Linux Community | Forum Categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MakeMethods::Template::Scalar(3pm)			User Contributed Perl Documentation			MakeMethods::Template::Scalar(3pm)

NAME
Class::MakeMethods::Template::Scalar - Methods for blessed scalars
SYNOPSIS
package MyObject; use Class::MakeMethods::Template::ExternalData ( new => 'new', scalar => 'foo', ); package main; my $obj = MyObject->new( foo => "Foozle" ); print $obj->foo(); # Prints Foozle $obj->foo("Bamboozle"); # Sets $$obj print $obj->foo(); # Prints Bamboozle
DESCRIPTION
Supports the Generic object constructor and accessors meta-method types, but uses scalar refs as the underlying implementation type, so only one accessor method can be used effectively. Standard Methods The following methods from Generic are all supported: new scalar string string_index number boolean bits array hash tiedhash hash_of_arrays object instance array_of_objects code code_or_scalar See Class::MakeMethods::Template::Generic for the interfaces and behaviors of these method types. However, note that due to special nature of this package, all accessor methods reference the same scalar value, so setting a value with one method will overwrite the value retrieved by another. perl v5.10.1 2004-09-06 MakeMethods::Template::Scalar(3pm)
Related Man Pages
class::makemethods::basic(3pm) - debian
class::makemethods::evaled::hash(3pm) - debian
class::makemethods::template::classinherit(3pm) - debian
class::makemethods::template::global(3pm) - debian
class::makemethods::template::inheritable(3pm) - debian
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
One instance of comparing grep and awk
Find columns in a file based on header and print to new file
Weird 'find' results
My first PERL incarnation... Audio Oscillograph