Ok im just starting to learn perl. what im basically doing is asking the user for a couple of inputs and then appending in it to a file. but when write them to a file, it writes each input in one line and the next input in the next line, so isnt it supposed to added in a single line? and how can i add them as a single line? i need help to get out of this confusion.
something like this open DF, ">> datafile.txt" ; print "enter name " $a=<STDIN>; print "enter age"; $b=<STDIN>; $c="$a + $b" print DF $c; so basically what i want to write to the file is something like foo 23 but when i do something like the code above it writes to the files like this foo 23 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/