in reply to perl internal for present script without full path?

Both of the above posts cover how to split the information up, but i assume you can do that (per the split in your post) ... i checked through the debugger, and, as suspected, there is not internal variable ... sorry, but $0 is all she wrote.
Thus spake the Master Programmer:
"When you have learned to snatch the error code from the trap frame, it will be time for you to leave."
-- The Tao of Programming