Sorry for the mistake.
I tried the new code and got this:
Unable to compile 'get_cat_keywords': Global symbol "$cat_url" requires explicit package name at (eval 39) line 8.
I tried the new code and got this:
Unable to compile 'get_cat_keywords': Global symbol "$cat_url" requires explicit package name at (eval 39) line 8.