I have a simple Perl script to read a file line by line. Code is below. I want to display two lines and break the loop. But it doesn\'t work. Where is the bug?
In bash foo is the name of the variable, and $ is an operator which means 'get the value of'.
foo
$
In perl $foo is the name of the variable.
$foo