Dumpvalue

use Dumpvalue;

      Dumpvalue->new->dumpvalue($store);

Angewandt auf das Beispiel aus Class::Struct wird folgende Ausgabe geliefert:

'Shoppe::addrs' => ARRAY(0x9cld4)
   0 'Miskatonic University'
   1 'Innsmouth, Mass.'
'Shoppe::boss' => Manager=HASH(0xa5754)
    'Manager::name' => 'Prof L. P. Haitch'
    'Manager::salary' => 'madness'
    'Manager::started' => 'Sat Apr 1 16:18:13 2000'
'Shoppe::owner' => 'Abdul Alhazred'
'Shoppe::stock' => HASH(Oxfdbb4)
    'books' => 2 08
    'charms' => 3
    'potions' => 'none'

Dies ist ein weiteres Modul, das Sie bei der Darstellung komplexer Daten unterstützt. Es dient nicht so sehr zur Serialisierung als vielmehr zur formatierten Ausgabe (pretty prin-ting). Es wird vom x-Befehl des Perl-Debuggers genutzt. Daher bietet es eine Vielzahl ...

Get Programmieren mit Perl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.