GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CLASS::MAKEMETHODS::TEMPLATE::SCALAR (3)

.ds Aq ’

NAME

Class::MakeMethods::Template::Scalar - Methods for blessed scalars

CONTENTS

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MAKEMETHODS::TEMPLATE::SCALAR (3) 2004-09-06

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.