Clearcase command line mkattr needs to wrap variable $bug_num between single quote + quote + $varible + quote + single quote, like this:
cleartool mkattr -replace BUGNUM '"$bug_num"' clearcase_file
How to make a call of the command cleartool mkattr in a Perl script in Unix env? Env is Unix AIX and ksh