>>>>> "OL" == Olga Lee <olga.lee.m...@gmail.com> writes:

  OL> Oh, thank you!!
  OL> Now I understand, the point is that if don't suppose to give an
  OL> argument to function, i should declare it as function() with brackets.

that is actually the wrong point. don't use prototypes unless there is a
major benefit to using them (and there are a few). the correct thing to
take from this is to always call your functions with (). that is good in
several ways. it means you don't ever have to predeclare them, it means
you will always see and know what is being passed to the call and it
won't ever be parsed incorrectly.

uri

-- 
Uri Guttman  --  uri AT perlhunter DOT com  ---  http://www.perlhunter.com --
------------  Perl Developer Recruiting and Placement Services  -------------
-----  Perl Code Review, Architecture, Development, Training, Support -------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to