Hi, On Wednesday 05 Jan 2011 09:02:29 jyang wrote: > Hi all : > > I watch a function that is package "Test::More " ,which is that segment > such as : > sub ok ($;$) { } and sub is ($$;$) { } > > please tell me what means "($;$)" , or give me some reference manual let > me know it; thank you!
These are called prototypes and can be used to specify the type of arguments (scalar, array, hash etc.) that the function should expect. The useful rule of thumb is to never use them in your own code: https://www.socialtext.net/perl5/index.cgi?prototype Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Optimising Code for Speed - http://shlom.in/optimise Chuck Norris can make the statement "This statement is false" a true one. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/