sub set_struct { xxxxx = @_; # <-- ??? $BOTMSG{Msg} = "1"; $BOTMSG{uid} = "1024"; $BOTMSG{LineType} = "100"; $BOTMSG{Line} = "Hello World\n"; $BOTMSG{Cmd} = "/!say"; $BOTMSG{OpOnly} = "yes"; $BOTMSG{HelpFile} = "C\tmp\help\help1.txt"; $BOTMSG{CmdID} = "1234567890"; return %BOTMSG; };