If you just want to print to OUTFILE and not print to stdout as well (davido has answered that part), just replicate your other print statements, like this:
print (OUTFILE "<B>$file</B><BR>\n") if -d "$dir/$file";And perldoc -f open is something you have to enter at a command line prompt which gives you documentation on the perl function 'open' - in case this was the problem and not the documentation of the 'open' function itself.
-- Hofmator
In reply to Re: reading files and directories, part two
by Hofmator
in thread reading files and directories, part two
by ctp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |