r...@goto10.org wrote:
hi i am trying to write a bot that passes messages to OSC from and IRC
i'm having a bit of problem formating my output
the messages i get in my OSC client look like this:
/irc/11811/$VAR1 = rob;/$VAR1 = testing 1 2 3
when i would like them to look like this:
/irc/11811/rob/testing 1 2 3
any hints to what i am doing wrong?
I know nothing about the module you are using, but out from your
description it seems like there is a hash ref looking something like:
my $message = {
who => 'rob',
body => 'osc testing 1 2 3',
};
and you are using Data::Dumper to extract values from it when you'd
better just say:
my $nick = $message->{who};
my $str = $message->{body};
Hopefully that hint helps you move forward.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/