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, 2424👍, 0💬
Popular Posts:
How To Test Transaction Isolation Levels? - MySQL FAQs - Transaction Management: Commit or Rollback ...
Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expa...
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
How To Control Table Widths? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells Usually, b...
Write an equivalent expression for x%8? x&7