I don't think LINE is a file handle, it is a label reference.
These 2 do the same thing:
Code:
perl -n -e 'next LINE unless /foo/; print $_' infile
and
Code:
#!/usr/bin/perl
use strict ;
use warnings ;
LINE: while (defined($_ = <ARGV>)) {
next LINE unless /foo/;
print $_;
}
exit 0;
I have to admit that I cannot find any documentation or reference to LINE, as stated by j-ray: The perlmonks probably know all the gory details.