Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Think about Loose Coupling
 
PerlMonks  

Re: Cann't create a file

by coreolyn (Parson)
on Jul 14, 2005 at 18:57 UTC ( #475011=note: print w/ replies, xml ) Need Help??


in reply to Cann't create a file

I would check what your value of $log[0] is. You may be making a logfile -- just not the one you're expecting. Also better clarity in your variable naming wouldn't hurt. $logname might be clearer than $log and avoid confusion with your @log array.

If you are still not creating a log file check the permissions on the directory into which it is trying to write. chdir may not be your cwd so your log may be printing somewhere you don't expect. ( Like where you are starting the script from )

One last suggestion would be to simplify the setting of the logfile name with 1 line $logname= "$log[0]\.log"


Comment on Re: Cann't create a file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-04-23 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (554 votes), past polls