BUT............when I changed the permission of the file to 777 it works!
Can you guys help me figure out what is wrong?
Here goes the perl module:
#!/usr/bin/perl
package Mymodule::SetTheme;
use strict;
use vars qw(@ISA @EXPORT $VERSION);
require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
@EXPORT = qw(SetTheme_settheme);
$VERSION = '1.0';
require 5.004;
sub SetTheme_init {
return(1);
}
sub SetTheme_settheme {
open(HOMEDIRL,">/home/mysite/testing");
print HOMEDIRL "theme2";
close(HOMEDIRL);
print "Theme changed";
}