logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Wx::Perl::DataWalker - Perl extension for blah blah blah

Author

       Steffen Mueller, <smueller@cpan.org>

Description

       "Wx::Perl::DataWalker" implements a "Wx::Frame" subclass that shows a relatively simple Perl data
       structure browser.  After opening such a frame and supplying it with a reference to an essentially
       arbitrary data structure, you can visually browse it by double-clicking references.

       So far, there is no tree view but only a display of the current level of the data structure. You can
       traverse back up the structure with a back button.

       Optionally, "Wx::Perl::DataWalker" displays the (approximate!) size of the data structure using
       "Devel::Size".

Name

       Wx::Perl::DataWalker - Perl extension for blah blah blah

See Also

       Wx, Devel::Size

       Padre::Plugin::DataWalker

Synopsis

         # alternatively, see the dataWalker.pl script in this distribution!
         use Wx::Perl::DataWalker;

         my $data_to_browse = {
           # complex data structure.
           # Good test: \%::
         };

         package MyWalkerDialog;
         our @ISA = qw(Wx::App);

         sub OnInit {
             my $self = shift;

             my $frame = Wx::Perl::DataWalker->new(
               {data => $data_to_browse},
               undef, -1,
               "dataWalker",
             );
             $self->SetTopWindow($frame);
             $frame->Show(1);
             $frame->SetSize(500,500);

             return 1;
         }

         package main;
         my $app = MyWalkerDialog->new();
         $app->MainLoop();

See Also