Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: specifying path to files

by naikonta (Curate)
on Oct 23, 2007 at 16:35 UTC ( #646714=note: print w/ replies, xml ) Need Help??

in reply to specifying path to files

You hardcode your pathnames. Do you have directory /home/hampton1/data in the target server? Putting $! in die statement could tell you right away.

open(SDATA,"$sdata")|| die("Could not open file: $!\n");
unlink $scnt;
would be sufficient instead of
if (-e "/home/hampton1/data/student_count.dat") { unlink($scnt); }
since you already assigned $scnt to /home/hampton1/data/student_count.dat, unless you care about why unlink didn't remove the file (which is another matter).

Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Comment on Re: specifying path to files
Select or Download Code
Replies are listed 'Best First'.
Re^2: specifying path to files
by jvallee (Initiate) on Oct 23, 2007 at 16:48 UTC
    Yes I have created data folder and set all permissions.

    It's screwy- formmail writes out file (actually appends) just fine.

    Pls excuse redundent (unnecessary coding) - old habits from DB prgramming days.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://646714]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2015-11-27 03:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (717 votes), past polls