in reply to Quickly reading the first line of a large number of files...
Error: Keyboard not attached. Press F1 to continue.my @perlscripts; foreach (@files) { open HANDLE, $_ or die "can't open $_"; push @perlscripts, $_ if <HANDLE> =~ /^#!/; close HANDLE; } print $_, "\n" for @perlscripts;
|
|---|