Argh, why do you keep quoting variables :)
chmod(0666, "$path_to_db");
Thats a pet hate of mine.
You are also using $_ in a split when split defaults to $_ so you don't need it....eg...
@foo = split /-/, $_
is the same as:
@foo = split /-/;
Not big deals but just better aesthetically and syntactically IMO
chmod(0666, "$path_to_db");
Thats a pet hate of mine.
You are also using $_ in a split when split defaults to $_ so you don't need it....eg...
@foo = split /-/, $_
is the same as:
@foo = split /-/;
Not big deals but just better aesthetically and syntactically IMO