Help for this page
use warnings; use strict; ... $text =~ s/(.{$num_of_chars}[\w|\(.*\)\w]*).*/$1/; print $text;
use warnings; use strict; my $text = " I'd like a foobar(s)! What about you?"; ... } for (@text) { print $_; }