P
PJ Hyett
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
__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