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
Data::Object::Role::Dumpable(3) User Contributed Perl Documentation Data::Object::Role::Dumpable(3)

Data::Object::Role::Dumpable

Dumpable Role for Perl 5

  package Example;

  use Moo;

  with 'Data::Object::Role::Dumpable';

  package main;

  my $example = Example->new;

  # $example->dump

This package provides methods for dumping the object and underlying value.

This package implements the following methods:

  dump() : Str

The dump method returns a string representation of the underlying data.

dump example #1
  # given: synopsis

  my $dumped = $example->dump;
    

  pretty_dump() : Str

The pretty_dump method returns a string representation of the underlying data that is human-readable and useful for debugging.

pretty_dump example #1
  # given: synopsis

  my $dumped = $example->pretty_dump;
    

  pretty_print(Any @args) : Int

The pretty_print method prints a stringified human-readable representation of the underlying data.

pretty_print example #1
  # given: synopsis

  my $printed = $example->pretty_print;
    
pretty_print example #2
  # given: synopsis

  my $printed = $example->pretty_print({1..4});
    

  pretty_say(Any @args) : Int

The pretty_say method prints a stringified human-readable representation of the underlying data, with a trailing newline.

pretty_say example #1
  # given: synopsis

  my $printed = $example->pretty_say;
    
pretty_say example #2
  # given: synopsis

  my $printed = $example->pretty_say({1..4});
    

  print(Any @args) : Int

The print method prints a stringified representation of the underlying data.

print example #1
  # given: synopsis

  my $printed = $example->print;
    
print example #2
  # given: synopsis

  my $printed = $example->print({1..4});
    

  say(Any @args) : Int

The say method prints a stringified representation of the underlying data, with a trailing newline.

say example #1
  # given: synopsis

  my $printed = $example->say;
    
say example #2
  # given: synopsis

  my $printed = $example->say({1..4});
    

Al Newkirk, "awncorp@cpan.org"

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file" <https://github.com/iamalnewkirk/data-object-role-dumpable/blob/master/LICENSE>.

Wiki <https://github.com/iamalnewkirk/data-object-role-dumpable/wiki>

Project <https://github.com/iamalnewkirk/data-object-role-dumpable>

Initiatives <https://github.com/iamalnewkirk/data-object-role-dumpable/projects>

Milestones <https://github.com/iamalnewkirk/data-object-role-dumpable/milestones>

Contributing <https://github.com/iamalnewkirk/data-object-role-dumpable/blob/master/CONTRIBUTE.md>

Issues <https://github.com/iamalnewkirk/data-object-role-dumpable/issues>

2020-04-24 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.