in reply to printing just part of data
Just use \s* to eat up all the spaces, and $1 to access the captured result.
my $file = './max/base/file.c: $(ROOT)/../../../api/maX \\'; if ($file =~ /:\s*(.*)/) { print "$1\n"; } [download]