hi everyone,i m new to perl.its great.
i have a problem.i open a file by giving its name with the redirection operator in the command line like this:
xxx.pl > xxx.txt
now whatever i type gets written in the file xxx.txt.
till here evrything is fine.but problem comes when i again execute the script with same file to which i want to pipe input.when i enter the new input the previous one gets cleared and the current one takes its place.
now the script doesnot do anything particular .its just to get an idea about writing to a file.and i just enter plain text.so what can be done so that the previous entered material remains in the file "xxx.txt" and everytime i enter something new it gets entered in that file along with the previous material.
thanks
i have a problem.i open a file by giving its name with the redirection operator in the command line like this:
xxx.pl > xxx.txt
now whatever i type gets written in the file xxx.txt.
till here evrything is fine.but problem comes when i again execute the script with same file to which i want to pipe input.when i enter the new input the previous one gets cleared and the current one takes its place.
now the script doesnot do anything particular .its just to get an idea about writing to a file.and i just enter plain text.so what can be done so that the previous entered material remains in the file "xxx.txt" and everytime i enter something new it gets entered in that file along with the previous material.
thanks
Comment