Yasen Petrov wrote: > Hello scripters, > > I made a script (submit.plx), which records the visitor's details into a > text file and then another script (table.plx) that puts them into a table. > But I receive the error: File handle FH opened only for output at submit.plx > line 53. Here's my code: > > open TXT, ">>contacts.txt" or die $!; > print <TXT>, @details;
This should be print TXT @details; #Remove the comma and '<' , '>' around TXT The statement as you have here is trying to read from the filehandle TXT which has been opened in append mode, thus the error. > > close (TXT) or die $!; > > It's exactly like on the manual. Any suggestions?
