Hi Monks,
Are there any differences between method calls of no arguments with and without ()? For example:
# Are they the same? $object->method; $object->method(); # Are they the same? open my $FileHandle1, "/tmp/file1"; $FileHandle1->close; open my $FileHandle2, "/tmp/file2"; $FileHandle2->close();
Thanks in advance.
In reply to Any differences between method and method()? by sophate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |