My perl script takes any number of files, opens them, and reads one line from each. But it\'s not working. Here\'s my code.
#!/bin/perl $numfile = scalar @ARGV
Use readline instead of <>.
readline
<>
perlop says:
perlop
If what's within the angle brackets is neither a filehandle nor a simple scalar variable containing a filehandle name, typeglob, or typeglob reference, it is interpreted as a filename pattern to be globbed