# using a heredoc print <## sub printw; $interpolate = "Interpolate this\n"; $comma = "We can use the comma operator\n"; @ary = qw (this_ is_ an_ array); printw "Once upon a time there was a little programmer ^ that asked to many questions.\nToday his question ^ was realy a stupd one\nand so on and on...\n^ $interpolate^ ", $comma, @ary; sub printw { my @text = @_; s/\^\n\s*//g, print for @text; }