You can prevent the evaluation of any identifier with the ! prefix, '$!chan' evaluates to plain text '$chan'.
However, $chan is a local identifier, it only exists during the scope of the event, so having a global variable containing $chan is most likely an error of conception.
$chan already plays the role of 'how to handle multiple channels'
Unless you can describe more in depth what you're trying to do, using this is probably not a good idea
Last edited by Wims; 22/11/13 09:46 PM.