Tree::PseudoIncLib

Tree::PseudoIncLib is a Perl class for encapsulating a description of pseudo-INC array.
Download

Tree::PseudoIncLib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Slava Bizyayev
  • Publisher web site:
  • http://search.cpan.org/~slava/Apache-CompressClientFixup-0.07/CompressClientFixup.pm

Tree::PseudoIncLib Tags


Tree::PseudoIncLib Description

Tree::PseudoIncLib is a Perl class for encapsulating a description of pseudo-INC array. Tree::PseudoIncLib is a Perl class for encapsulating a description of pseudo-INC array.ABSTRACTThis module encapsulates a perl-type library description data and provides methods for manipulating that data. It is in no way associated with any real @INC array on the system. Instead, it works with so-called pseudo_INC incoming array that might be, or might be not directly associated with @INC defined for a particular user or a process on the system.SYNOPSIS # make sure to configure the log system properly. # use Tree::PseudoIncLib; # # class default object: # my $tree_obj = Tree::PseudoIncLib->new(); # # another instance: # my $sp_obj = $tree_obj->new ( max_nodes => $my_max_nodes, # limit number of nodes p_INC => $my_INC_copy_ref, ); unless ( $sp_obj->from_scratch ) { # something went wrong: print ($sp_obj->status_as_string); die; } # we'we got a description inside the object. # we can export it to an appropriate form now... # my $src_html = $sp_obj->export_to_DHTML ( title => 'Test-Debug', image_dir => 'data/images/', icon_shaded => 'file_x.gif', icon_folder_opened => 'folder_opened.gif', icon_symlink => 'hand.right.gif', tree_intend => 18, row_class => 'r0', css => '', # use 'inline' css jslib => '', # no jslib overlib => 'js/overlib.js', ); # ... and deploy the document from $src_html then...Detailed description of Perl library on the system is extremely helpful for every perl developer. It could be benefitial for the system administrator too in order to ensure a proper structure of system libraries.This module encapsulates the description data and provides methods for manipulating that data. It was initially developed as an Apache incorporated tool for the mod_perl development. The idea beside was pretty simple -- to provide developers with the tree of all available perl modules installed on the system and make all sources and documents viewable on network.As a side effect of the first developed prototype, it appeared to be usefull additionally from the standpoint of proper configuration of @INC array on the system, particularly regarding the fact that some perl modules could be shaded by other ones carrying the same CPAN class name. It appears to be pretty easy to mark all shaded modules on the tree, providing helpful information for the system administrator.It was noticed additionally that the process of creation of the tree is extremely time consuming, especially on busy web servers equiped with rich Perl libraries. On the other hand, the content of the libraries remains unchanged usualy pretty long time that is measured in days and weeks. So far, the separation of the process of creation of the tree from the process of deployment of the view to the client browser seems beneficial from the prospective of improvement of performance on busy systems. That was the main reason of creation of this module, making it possible to use the same API from the command line script or one running under the cron control.Despite the initial purpose, this version of the module is in no way associated with any real @INC array on the system. Instead, this module works with so-called pseudo_INC incoming array that might be, or might be not directly associated with current @INC for a particular user/process on the system. Requirements: · Perl


Tree::PseudoIncLib Related Software