#perl - Wed 28 Mar 2007 between 18:01 and 18:06



mrpengu1nlike somehow selecting that output go to an array
Chris62vwmrpengu1n, you mean like this: use File::Slurp; my @file= read_file("filename"); ?
mrpengu1nlike I have a lot of print statements, and instead of it going to STDOUT can I send it to an array
Aankhen``I think he wants all `print` calls to be redirected to the array...
Chris62vwor in a while loop, push $_, @stuff
mrpengu1nya
Aankhen``There isn't any way to do that, AFAIK...
Chris62vwchange then to push statements :-)
Aankhen``Aye.
PUSH MA'AM, PUSH
Chris62vwtheoretically you could hijack print() (I think, but it is core, so I am not sure) and turn it into something else
but that just sounds dirty
silieh, just tie STDOUT
actionCPAN upload: Catalyst-Model-S3-0.02 by DCARDWELL
CPANupload: Catalyst-Model-S3-0.02 by DCARDWELL
warpzerogod i love perl
Ani-_Stop stating the obvious things...
Aankhen``LOL PERL IS R0X
actionAankhen`` ducks.
Aankhen``ducks.
warpzerowe don't happen to have an Adam Kennedy in here do we
or someone who is up with the AppConfig
Randal.seen alias
Ani-_Chris62vw: You can't hijack print() AFAIK
Randalhmm - that doesn't do anything
Chris62vwAni-_, I wasn't sure...
Randalhis name here is alias
warpzerooh
Chris62vwRandal, can you hijack print(), and if not, why not?
Ani-_Chris62vw: but you can - ofcourse - open a filehandle to a scalar reference and then select that filehandle. That way all prints go to the scalar.
Chris62vwAni-_, aha! that's right
warpzero.seen alias
Ani-_Chris62vw: I know there are several functions you can't hijack using CORE::GLOBAL.
warpzero!seen alias
bot not working?
Aankhen``Ding dong, the bot is dead.
Chris62vwAni-_, right. I remember trying before and not getting it to work
Ani-_Who cares? There are plenty of other bots to replace it...
Chris62vwwarpzero, use /msg seenserv seen NICK
hobbswarpzero: bot not in existence. We have no bot that answers to !seen. :)
warpzero15:03:25 -SeenServ- I haven't seen alias recently
well anyway someone want to give me AppConfig advice

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

IrcArchive