From: PJ Hyett Date: 2006-03-18T01:49:19+09:00 Subject: Explanation of if __FILE__ == $0 So I've tracked this down: __FILE__ is the name of the current source file $0 at the top level is the name of the top-level program being executed But I'm still confused as to what this if statement is accomplishing? It's obviously useful for something since it's used quite often. Does this pertain to when a script is called from another script? Thanks, PJ