Help for this page
my $text = 'The world is all that is the case'; my $sniplength = 10; my $truncated = substr($text,0,index($text,' ',$sniplength));