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:
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
What does `new $cur->{LINK}' do? (Assume the current package has no new() function of its own.)
✍: Guest
$cur->new()->{LINK}
The indirect object syntax only has a single token
lookahead. That means if new() is a method, it only
grabs the very next token, not the entire following
expression.
This is why `new $obj[23] arg' does't work, as well as
why `print $fh[23] "stuff\n"' does't work.
Mixing notations between the OO and IO notations is perilous. If you always use
arrow syntax for method calls, and nothing else, you'll
not be surprised.
2013-09-09, 2132👍, 0💬
Popular Posts:
What Happens to Your Transactions When ERROR 1213 Occurred? - MySQL FAQs - Transaction Management: C...
What Is Paint Shop Pro? - PSP Tutorials - Fading Images to Background Colors with PSP Paint Shop Pro...
How Do You Uninstall JUnit Uninstalling JUnit is easy. Just remember these: Delete the directory tha...
How To Manage Transaction Isolation Level? - Oracle DBA FAQ - Introduction to PL/SQL Transaction iso...
What is continuous and staged representation? CMMI contains 25 key process areas which organization ...