> if ($f =~ m|\.c$|) { <---------------- Here, bad coder! BAD! I don't know perl at all, so those were stabs in the dark. Any pointers on that would be appreciated.
Try: if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) Kind regards.
> if ($f =~ m|\.c$|) { <---------------- Here, bad coder! BAD! I don't know perl at all, so those were stabs in the dark. Any pointers on that would be appreciated.
Try: if( $f =~ m/\.c$|\.cpp$|\.cc$/ ) Kind regards.