#perl - Thu 15 Mar 2007 between 00:00 and 00:05

NY Lost Funds



Dsbeerff00li5h, yeah i know but is kinda phat, i just need it for msn and in perl
f00li5hDsbeerf: what client do you use?
can it be scripted in perl?
seigquick question, how do i determine if a varialbe is a filehandle or a scalar?
variable*
f00li5hseig: scalars can be file handles
Dsbeerff00li5h irssi and sometime xchat and yes they support perl script
maukeseig: why do you need that?
f00li5hDsbeerf: so just use bitlbee, and script your client
seigok, 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
maukeew
rhizoyou'd check the IO slot in the namespace, but lexical filehandles aren't gonna show up in it
f00li5hmauke: TT does it
maukethat doesn't make it good
f00li5hseig: try ref
mauke: it's handy though
seigthanks
maukeseig: ref(\$arg) eq 'GLOB' || ref($arg)
f00li5h$TT->process('filename' / *GLOB_REF / \'reference to template')
DsbeerfWell, like i said bitlbee is kinda fat, it support a ton of protocol
maukenot sure if that catches all possibilities
RageAgainstThemdsbeerf
y don't u enable msn logging
n take it from those
DsbeerfRageAgainstThem, you mean like a "cat" ?
f00li5hDsbeerf: so, at a later point, you can use your spam script on ICQ too
RageAgainstThemas long as u empty the string u send out
then its ok
seigso like if(ref(\$arg) eq 'GLOB') { its a filehandle } else { its a string } ?
f00li5heval: [ ref *STDIN, ref 'moose', ref \'moose' ]
buubotf00li5h: ['','','SCALAR']
maukeno, if (ref(\$arg) eq 'GLOB' || ref($arg)) { # could be a filehandle
Randalfilehandles have very specific syntax
RageAgainstThemi dunno, like a program that takes a line of log file, pulls out the xml n pastes it into irc
f00li5heval: [ ref *STDIN, ref 'moose', ref \'moose' , ref \*STDIN]
buubotf00li5h: ['','','SCALAR','GLOB']
Randalif you mean package-based literal filehandles
RageAgainstThemthen removes exactly what it took
f00li5heval: [ ref *STDIN, ref 'moose', ref \'moose' , ref \*STDIN, ref \\'moose']
buubotf00li5h: ['','','SCALAR','GLOB','REF']

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 

IrcArchive

NY Lost Funds