Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: still can't create a file using a variable

by lhoward (Vicar)
on Jun 25, 2001 at 22:25 UTC ( #91378=note: print w/replies, xml ) Need Help??


in reply to still can't create a file using a variable

Try adding some error checking to your code:
$filename = $timestamp.".txt"; print $filename; sleep 5; open (TEMPFILE, ">$filename") or die "error, can't create $filename : +$!";
This should tell you while the file create failed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2019-08-22 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?