[quote=Froschpopo,08.11.2005, 11:04]könnte man SEEK_SET nicht theoretisch auch selbst schreiben?
z.B. so:
???[/quote]
Quote In the current implementation, scalar constants are actually inlinable
subroutines. As of version 5.004 of Perl, the appropriate scalar con-
stant is inserted directly in place of some subroutine calls, thereby
saving the overhead of a subroutine call. See "Constant Functions" in
perlsub for details about how and when this happens.
außerdem hast du den prototyp () vergessen. vergleiche:
tina@lugosi:~$ perl -MO=Deparse -e' sub BLA { 23 } print BLA'
sub BLA {
23;
}
print BLA();
-e syntax OK
tina@lugosi:~$ perl -MO=Deparse -e' sub BLA() { 23 } print BLA'
sub BLA () { 23 }
print 23;
-e syntax OK
somit ist deine "konstante" vermutlich noch langsamer als die von Fcntl.\n\n
<!--EDIT|pq|1131448731-->