Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

RE: File Input and Output

by SYbeginner (Novice)
on Jun 17, 2000 at 07:49 UTC ( #18604=note: print w/replies, xml ) Need Help??


in reply to File Input and Output

Also if a file doesn't exisit the following code will generate the file on the server although I can't figure out why:
open(file, ">$filename") flock file, 2; print file "Whatever you want to say"; close(file);
And after that it generates a file on the server, could someone explain it for me?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://18604]
help
Chatterbox?
[marto]: "My solution is I just don’t use these tools anymore".
[ambrus]: Corion: Maybe I'm not explaining the situation clearly enough, maybe I'm just wrong and he's right and we can compute that data,
[ambrus]: but hopefully he just wants to think it through himself his way and understand why it's impossible rather than blindly accept my argument.
choroba quickly peeps in from a café
[1nickt]: Good morning Monks of the world!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2017-12-12 13:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (332 votes). Check out past polls.

    Notices?