Schrift
[thread]2058[/thread]

Perl-Test (Seite 2)

Leser: 1


<< |< 1 2 >| >> 11 Einträge, 2 Seiten
betterworld
 2006-11-16 16:15
#23271 #23271
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
[quote=heihon,14.11.2006, 17:04]Aha, dann sind also Funktionen == Operatoren - dann kann man sich ja
Code: (dl )
use overload;
in Zukunft ersparen.[/quote]
Funktionen sind in gewisser Hinsicht in der Tat Operatoren. Siehe perldoc perlop:
Quote
A TERM has the highest precedence in Perl. They include variables,
quote and quote-like operators, any expression in parentheses, and any
function whose arguments are parenthesized. Actually, there aren't
really functions in this sense, just list operators and unary operators
behaving as functions because you put parentheses around the arguments.
These are all documented in perlfunc.

Mit overload hat das aber nichts zu tun.
<< |< 1 2 >| >> 11 Einträge, 2 Seiten



View all threads created 2006-11-14 13:11.