chengiz5 has asked for the wisdom of the Perl Monks concerning the following question:
While writing a perl script, I wanted to flush a handle, and wrote
flush $gp;
like the C coder I am. The code worked. Then while cleaning up the syntax for consistency, I added parens, i.e. flush($gp), but this did not work. Turns out flush is not a function (it's not in perlfunc). So why did my first attempt work?
|
---|