Hi there,
I'm trying to open up a text file read info from it, alter it and write back the alterations when a user clicks on the save button, but I've hit two issues:-
1) I can't open the file for write access as I don't have permissions - can I alter a files permissions during a program using chmod? I've tried to alter it by hand in an ftp window (to 755 from 666) but it just stays the same.
2) A button (in perl) calls a java function only as far as I can find out, can I use it to call a perl function instead? if so could I have an example like this:-
print "<button type=button onClick=\"update_file()\">Save1</button>";
update_file() being the perl sub that I'd like to call.
If I can't do this and have to call a java function can I then call the perl sub from there instead, I've tried it like this but it doesn't do anything so I'm presuming it doesn't work:-
print "function update_file ()\n";
print "{";
print "update_input_filehandle_with_local_text ()";
print "}\n";
many thanks in advance for your help
Sarah