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
Declare::Constraints::Simple::Result(3) User Contributed Perl Documentation Declare::Constraints::Simple::Result(3)

Declare::Constraints::Simple::Result - Validation Result

  my $result = $constraint->($value);

  my $message = $result->message;
  my $path    = $result->path;

This represents a result returned by a Declare::Constraints::Simple constraint. Objects of this kind overload their boolean context, so the value of the is_valid() accessor is reflected to it.

Constructor. As you will mostly just receive result objects, you should never be required to call this yourself.

Sets the results validity flag.

Boolean accessor telling if this is a true result or not.

The error message. Useful only on non-valid results.

Returns the message of the result object.

This adds another level at the beginning (!) of the results constraint stack. This is mostly intended to use for the "prepare_generator"method in Declare::Constraints::Simple::Library package.

Returns a string containing the stack() contents joined together by the $separator string (defaulting to ".").

Returns an array reference containing the results currrent stack. This is a list of the constraints path parts. This is usually just the constraints name. If there's additional info, it is appended to the name like "[$info]".

Declare::Constraints::Simple

Robert 'phaylon' Sedlacek "<phaylon@dunkelheit.at>"

This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.
2006-09-11 perl v5.32.1

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

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