use strict; my @testStrs = ("all this
", "meh!"); for my $str (@testStrs) { my $contents = $str; $contents =~ s/^[^