by hnu0847 · 4y ago · 0 comments
: sub {};
Don't all perl subroutines allow any number of arguments (including 0) to be passed?Does the fact that the above is an anonymous subroutine affect the answer to my question?
sub() {}
does not try to parse the /1;#/+ as an argument because the () indicates there are no arguments (although they could be explicitly included if f were called with (), whereas this: sub f {}
does try to parse the /1;#/+ as an argument because that's perl's behavior if () are omitted?