you're calling print with no arguments, which means it defaults to printing the contents of $_, which happen to be (in this case), the number '1'.
No, that's not right. Notice the ; is commented out too, so the statement does not end on that line. It's actually what Your Mother said -- the return value from closedir.
In reply to Re^2: CGI throws in an extra character. Why?
by Anonymous Monk
in thread CGI throws in an extra character. Why?
by Petras
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |