Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Why does Perl not have overloaded functions?
Why does Perl not have overloaded functions?
✍: Guest
Because you can inspect the argument count,
return context, and object types all by yourself.
In Perl, the number of arguments is trivially available
to a function via the scalar sense of @_, the return
context via wantarray(), and the types of the
arguments via ref() if they're references and
simple pattern matching like /^\d+$/ otherwise.
In languages like C++ where you can't do this, you
simply must resort to overloading of functions.
2013-09-06, 2582👍, 0💬
Popular Posts:
What are some uses of Intranets & Extranets? An "intranet" is the generic term for a collect...
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designe...
What is XSLT? XSLT is a rule based language used to transform XML documents in to other file formats...
What Is the "@SuiteClasses" Annotation? "@SuiteClasses" is a class annotation defined in JUnit 4.4 i...
How To Check the Oracle TNS Settings? - Oracle DBA FAQ - ODBC Drivers, DSN Configuration and ASP Con...