in reply to Breaking a script into smaller files

No, $0 doesn't always contain a full, absolute path. But it isn't like argv[0]. That is, it always (on all platforms) lets you know what directory your script is in. You might have to do rel2abs() on it. See FindBin is broken (RE: How do I get the full path to the script executing?) for more.

        - tye (but my friends call me "Tye")