Thread Filehandle, kommas und andere Merkwürdigkeiten (18 answers)
Opened by stelzbock at 2009-02-06 19:58

moritz
 2009-02-06 20:13
#118679 #118679
User since
2007-05-11
923 Artikel
HausmeisterIn
[Homepage]
user image
Schau mal in die Dokumentation zu print:

Code: (dl )
1
2
3
4
5
6
       print FILEHANDLE LIST
print LIST
print Prints a string or a list of strings. Returns true if
successful. FILEHANDLE may be a scalar variable name, in which
case the variable contains the name of or a reference to the
filehandle, thus introducing one level of indirection.


Was da steht ist: wenn hinter dem 'print' ein Ausdruck, dann ein Leerzeichen und dann noch ein Ausdruck steht, dann wird der erste als Filehandle interpretiert. Wenn du ein Komma setzt ist es einfach Teil der 'LIST'e.

View full thread Filehandle, kommas und andere Merkwürdigkeiten