X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FPresenter%2FText.pm;h=dd855fc096e42200ecdf4ea8a18f389387870ae6;hb=c4ad3f668a9eae6af0fa2004462333dfe270cf68;hp=539f3804a125f39211c2a49008fd485b59620eed;hpb=0e5e350124f7eec8f67109fe4777bc2dae6c0ea6;p=kivitendo-erp.git diff --git a/SL/Presenter/Text.pm b/SL/Presenter/Text.pm index 539f3804a..dd855fc09 100644 --- a/SL/Presenter/Text.pm +++ b/SL/Presenter/Text.pm @@ -56,8 +56,10 @@ SL::Presenter::Text - Presenter module for assorted text helpers =head1 SYNOPSIS + use SL::Presenter::Text qw(truncate); + my $long_text = "This is very, very long. Need shorter, surely."; - my $truncated = $::request->presenter->truncate($long_text, at => 10); + my $truncated = truncate($long_text, at => 10); # Result: "This is..." =head1 FUNCTIONS