Thanks to everyone who answered me on and off the list. 

        print "standalone\n" if (!caller);

seems just what I've been looking for.
(comparing $0 to the script's name would also work most of the times.)

Dan.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to