Thread perl highlight (25 answers)
Opened by esskar at 2003-08-11 16:32

kabel
 2003-08-11 20:22
#31718 #31718
User since
2003-08-04
704 Artikel
BenutzerIn
[default_avatar]
welches:
Quote
kabel@linux:~> perl -MO=Deparse

print abs / 0; # is this a comment?/;
print time / 1; # is this a comment?/;Warning: Use of "abs" without parens is ambiguous at - line 2.

print abs / 0; # is this a comment?/;
print time / 1;
- syntax OK
kabel@linux:~>


warum ??? ich könnte mir höchstens folgendes vorstellen: das abs nimmt einen parameter, also wird das hintendran als re aufgefasst und dann dem abs übergeben. time ist eine 0-äre funktion, das / bedeutet division und der rest ist ein comment.
-- stefan

View full thread perl highlight