Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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!

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2018-06-20 18:00 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.