syntax error at ./new.pl line 6, near ") {" Execution of ./new.pl aborted due to compilation errors. #### #! /usr/bin/perl -w my @files= <*.in> for (@files) { s/[.]in//g } say $_ for @files;