I think Paul's solution is perfectly OK and safe. $0 is the program name which is set by perl.
Anyway, why don't you write a wrapper function for your admin things, in the wrapper function you set a parameter (admin = 1) and then execute the function you really want to execute. Or you write a wrapper function for the user side....
Ivan
-----
Iyengar Yoga Resources / GT Plugins
Anyway, why don't you write a wrapper function for your admin things, in the wrapper function you set a parameter (admin = 1) and then execute the function you really want to execute. Or you write a wrapper function for the user side....
Ivan
-----
Iyengar Yoga Resources / GT Plugins