i wanted to open a file and then add text to it using print statement. will i be able to do it using perl ? Follwing is the script i am using for the same.
open HELLO, ">file.txt";
select HELLO;
print "hi !";
I am getting a compilation error. Can anyone tell me where i am going wrong ?