Perl::Folder

Fold and Unfold Blocks in Perl Code
Download

Perl::Folder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ingy d%uFFFDt Net
  • Publisher web site:
  • http://search.cpan.org/~ingy/

Perl::Folder Tags


Perl::Folder Description

Fold and Unfold Blocks in Perl Code Using regexps to look for values in Perl code is problematic. This module makes it much more reliable.Say you are looking for a line like this one: our $VERSION = '0.10';Matching that line is easy. But that line might be in a heredoc, the DATA section, a POD block or a comment. Also if you try to strip out all heredocs you don't know if they are really part of a POD block of DATA section, and vice versa.Perl::Folder is a Perl module that correctly finds these four types of blocks and folds them up, replacing their content with the SHA1 digest of their content.SYNOPSIS use Perl::Folder; my $folded = Perl::Folder->fold_blocks($perl); my $unfolded = Perl::Folder->unfold_blocks($folded); Requirements: · Perl


Perl::Folder Related Software