On 5/9/11 Mon May 9, 2011 8:03 AM, "Sandip Bhattacharya" <sand...@foss-community.com> scribbled:
>> >> Also, don't call a sub with the &. Does can do unexpected things. >> > > Just for my understanding, what are the other issues with &sub apart > from skipping prototype definitions? Please read the descriptions in 'perldoc perlsub'. Search for "Subroutines may be called recursively' and the section titled 'Prototypes'. Specifically, the use of the &sub form means that prototype checking will not be done and, if no arguments are included in the subroutine call, the @_ array will not be initialized and will be whatever value it had at the time of the call. While the use of subroutine prototypes is rare and the absence of checking not often a problem, having an unexpected value in @_ could cause unintended results. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/