Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Help Explain Behavior

by chromatic (Archbishop)
on Aug 18, 2012 at 22:22 UTC ( #988257=note: print w/replies, xml ) Need Help??


in reply to Help Explain Behavior

Why would the program stop running even if it no longer exists on the disk?

By the time the unlink happens, Perl's already loaded the program off of the disk into memory, compiled it, and started to run it.

(It would be silly—and a lot of work—to write a programming language which had to read every line off of the disk before executing it. Not only would you get tripped up by things like operating system disk buffering, but you'd have a difficult time making things like function calls work well.)

Replies are listed 'Best First'.
Re^2: Help Explain Behavior
by Joe_ (Beadle) on Aug 19, 2012 at 17:21 UTC

    This really makes sense. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988257]
help
Chatterbox?
NodeReaper selects a flavor of Kool-Aid

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-03-28 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (339 votes). Check out past polls.