in reply to When can I skip parens?
but not in this one:sub action { print "Action!"; } action;
Using the parenthesis makes a bare word unambiguous -- as a function. (see page 677 of the new Camel)action; # error under strict and -w sub action { print "Action!"; }
Update: My explanation is a little ambiguous. When you use the DBI module, it's loaded, compiled, and the functions it exports are imported into your namespace at that location in your file. All of its functions are effectively predeclared. Make sense?
|
|---|