in reply to USAGE OF Prototype
(updated)
prototypes are flexible, you can also indicate to a function whether a certain prototype is optional and you can include references to hashes in there.this function expects 2 scalar arguments and one optional argument after the ";"...so bear in mind that not all of this is irrelevant and there will come a time when you'd better use a prototype in a function definition than pass it over.example: sub NAME($$;$){...} #mistake corrected
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: USAGE OF Prototype
by SuicideJunkie (Vicar) on Aug 06, 2009 at 15:36 UTC |