in reply to calling a sub from an if statement
sub msg { $msg_num = @_[0]; # ... [download]
@_[0] # An array slice $_[0] # The first element of the array @_ (usually passed to the subro +utine) [download]