| Dsbeerf | f00li5h, yeah i know but is kinda phat, i just need it for msn and in perl |
| f00li5h | Dsbeerf: what client do you use? can it be scripted in perl? |
| seig | quick question, how do i determine if a varialbe is a filehandle or a scalar? variable* |
| f00li5h | seig: scalars can be file handles |
| Dsbeerf | f00li5h irssi and sometime xchat and yes they support perl script |
| mauke | seig: why do you need that? |
| f00li5h | Dsbeerf: so just use bitlbee, and script your client |
| seig | ok, heres the problem, i'm trying to make a function where one of the variable can be either a string or a filehandle, they are to be handled differently |
| mauke | ew |
| rhizo | you'd check the IO slot in the namespace, but lexical filehandles aren't gonna show up in it |
| f00li5h | mauke: TT does it |
| mauke | that doesn't make it good |
| f00li5h | seig: try ref mauke: it's handy though |
| seig | thanks |
| mauke | seig: ref(\$arg) eq 'GLOB' || ref($arg) |
| f00li5h | $TT->process('filename' / *GLOB_REF / \'reference to template') |
| Dsbeerf | Well, like i said bitlbee is kinda fat, it support a ton of protocol |
| mauke | not sure if that catches all possibilities |
| RageAgainstThem | dsbeerf y don't u enable msn logging n take it from those |
| Dsbeerf | RageAgainstThem, you mean like a "cat" ? |
| f00li5h | Dsbeerf: so, at a later point, you can use your spam script on ICQ too |
| RageAgainstThem | as long as u empty the string u send out then its ok |
| seig | so like if(ref(\$arg) eq 'GLOB') { its a filehandle } else { its a string } ? |
| f00li5h | eval: [ ref *STDIN, ref 'moose', ref \'moose' ] |
| buubot | f00li5h: ['','','SCALAR'] |
| mauke | no, if (ref(\$arg) eq 'GLOB' || ref($arg)) { # could be a filehandle |
| Randal | filehandles have very specific syntax |
| RageAgainstThem | i dunno, like a program that takes a line of log file, pulls out the xml n pastes it into irc |
| f00li5h | eval: [ ref *STDIN, ref 'moose', ref \'moose' , ref \*STDIN] |
| buubot | f00li5h: ['','','SCALAR','GLOB'] |
| Randal | if you mean package-based literal filehandles |
| RageAgainstThem | then removes exactly what it took |
| f00li5h | eval: [ ref *STDIN, ref 'moose', ref \'moose' , ref \*STDIN, ref \\'moose'] |
| buubot | f00li5h: ['','','SCALAR','GLOB','REF'] |