In article <[EMAIL PROTECTED]> wrote "Bruce Ambraal" <[EMAIL PROTECTED]>:
> Hi > > Could someone help? > > the following code is not working. What's wrong ? What's the error message ? > > open(INPUT_FILE,"+>fixed.dat") || die "Could not open filename"; In this snippet INPUT_FILE is a file where you write output to. Don't call an output file INPUT_FILE! > while (<STDIN>) { > print INPUT_FILE "bruce\n"; It should write as many lines as read by <STDIN> bruce. E.g. if your STDIN consists of 4 lines, your output is: bruce bruce bruce bruce Is it what you really want ? > } > close(INPUT_FILE); Best Wishes, Andrea -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]