README for Text::Chump 1.02 =head1 NAME Text::Chump - a module for parsing Chump like syntax =head1 SYNOPSIS use Text::Chump; my $tc = Text::Chump->new(); $tc->chump('[all mine!|http://thegestalt.org]'); # returns all mine! $tc->chump('+[all mine!|http://thegestalt.org]'); # returns all mine! $tc->chump('http://thegestalt.org'); # returns http;//thegestalt.org my $tc = Text::Chump->new({images=>0}); $tc->chump('+[all mine!|http://thegestalt.org]'); # returns '+[all mine!|http://thegestalt.org]' sub foo { my ($url, $label) = @_; return "$label ($url)"; } $tc->install('link',\&foo); $tc->chump('[foo|http://bar.com]'); # returns 'foo (http://bar.com)' sub quirka { my ($opts, $match, $label) = @_; return "$label"; } $tc->install('link',\$quirka,'\d+'); $tc->chump('[stuff|4444]'); # returns "stuff" =head1 DEPENDENCIES This module has external dependencies on the following modules: Test::More Text::DelimMatch Tie::IxHash URI::Find =head1 INSTALLATION perl Makefile.PL make test and if all goes well make install =head1 HISTORY v1.02 - Fixing some potential undef warnings Found by Tom insam =head1 AUTHOR Copyright 2003, Simon Wistow =head1 SEE ALSO B, L, L, L, L, L