| milky_cereal | i frown upon frowning upon. and doesn't perl? |
| Caelum | :) there's some way to do it with a glob too |
| milky_cereal | caelum: thanks for both. i guess i'll stick with -> unless i can better understand perl's symbol tables and justify using the other. i just want a way to load packages on the fly and call methods that should be there. (on the fly == runtime). |
| Caelum | milky_cereal: then -> is the right way to do it, because you could later upgrade from static class methods to real objects |
| milky_cereal | Caelum: thanks. i think you've helped me before. i really appreciate it. |
| Superkuh | I am trying to make an xchat perl plugin for text to speech. I am getting syntax errors when trying to declare the main control subroutine: http://24.245.49.197/library/meh/saystuff.pl.txt (does that look wrong)? |
| milky_cereal | Caelum: by for now. |
| Superkuh | Illegal declaration of subroutine Xchat::Script::saystuff::sub_control at (eval 20) line 92. |
| QtPlatypus | Superkuh: the () should be {}'s on your subs |
| Caelum | xchat uses Net::IRC? How evil... |
| Superkuh | ... I did? Oh lord. |
| QtPlatypus | Where you have gone sub sub_nume ( ... ) you should go sub sub_name { ... } |
| Superkuh | Yeah. I'm just...uh. Long night. And no, Caelum, it doesn't. |
| Caelum | Superkuh: maybe you want to use a CPAN module to do the saying, instead of forking for every line too... |
| Superkuh | I was mucking around earlier. Like what? ANd depend on festival, festvox, or MBrolia? I'd rather shove a broom up my anus, to be frank. |
| Caelum | heh maybe you could then open a pipe to say and just write to it |
| Superkuh | I tried that too. A lot. Before the perl. Lots of tail voodoo... none worked. |
| geoffeg | THIS IS RADIO CLASH ON PIRATE SATELLITE |
| bru802 | does anyone know why the first element of the hash combination is run while the others are skipped? http://sial.org/pbot/24171 |
| Caelum | Superkuh: like, open my $say, "|say"; print $say "stuff to say..."; bru802: you forgot the 2 => and 3 => ? |
| Superkuh | $say? I appreciate the help very much, but I am confused. This is say: http://24.245.49.197/library/meh/say.exe |
| Caelum | Superkuh: well, you're calling system("say ...") so instead of that, open a pipe to it with open. $say becomes the file handle |