This code sais: open the file /dev/null and give me a filehandle FH as a reference. Then read from the file referenced by FH and put that into $_. Stop reading at the end of the file.open FH, /dev/null or die "Can't open file\n"; while <FH> { #your code }
Reread post and ammended:
imhotep wrote:
#The variable, input in this case being #standard input
That is wrong. You opened input.txt and created a filehandle INPUT. You are reading from input.txt.
In reply to Re^3: matching paragraphs
by starbolin
in thread matching paragraphs
by imhotep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |