Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: WinXP not creating files

by dreadpiratepeter (Priest)
on Aug 06, 2009 at 13:44 UTC ( #786429=note: print w/ replies, xml ) Need Help??


in reply to WinXP not creating files

You are not checking the return cordes on any of your IO operations. I find it hard to belive that you are "at a loss" before doing even one round of debugging. any robust Perl code should ALWAYS check the return codes.
It should look like:

mkdir "c:/configs/".$RackID or die "mkdir failed: $!"; open ERROR,">c:configs/$RackID/AP Compare results.txt" or die "open fa +iled: $!"; ...
pedantics would check returns on the print and the close, but I'd bet dollars to donuts that your problem is in the mkdir or the open. My first guess would be that the program lack permission to write into the configs directory.


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."


Comment on Re: WinXP not creating files
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-12-28 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (178 votes), past polls