Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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");
Also,
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
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.

    JV

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-31 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls