Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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!

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.

    JV

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://646714]
help
Chatterbox?
[Corion]: A good daypart!
Corion feels slightly bad for initiating a discussion yesterday and then running away. I guess I should write that up as a meditation or SoPW
[Corion]: Not the "running away" part but the question+ discussion about IO-less HTTP modules
[Corion]: (or how/where to patch AnyEvent::HTTP or LWP::UserAgent to take control of both the callstack and the data transfer)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-12-08 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.