#perl - Fri 4 May 2007 between 03:02 and 03:09



dharbeer and libre
Jmaxooh nice
dharerr maybe thats only OpenSolaris actually
freeone3000...Mmkay.
So I'm back to writing my own linear search.
PerlJamScribbleJ: good job! I remember the days of taking a hacksaw to my computer chasis to make things fit
ScribbleJhahah
PerlJamScribbleJ: cherish these moments while you can :)
ScribbleJIt's been a long time since I've seen a full-length PCI card.
PerlJamfreeone3000: or you could use grep properly.
freeone3000Wait, no, I can just convert this to a regex. Is there a funciton in the stdlib to convert an arbitrary string to a regex-compatable version of itself?
namedriskhi, i am trying to send a command to the telnet using this code but it gives me timed-out every time at @lines = $t->cmd("help"); and if i set it to @lines = $t->print("help"); it will give me the number 1 could you guys hand me some help :P
pasteling"namedrisk" at 200.139.153.229 pasted "timed-out at the cmd" (21 lines, 424B) at http://sial.org/pbot/24682
ScribbleJIt was a RocketModem card; now that I am a Leet Hacker I am going to start the coolest 0-day warez BBS in the world! 4/1 ratios, everyone is a sysop!
Okay, I'm old.
PerlJamfreeone3000: you've gone off the deep end and made a simple thing very complex.
LisaLaptopGumbyBRAIN, qu'est-ce que tu pense sur les examens?
GumbyBRAINLes femmes faciles!
freeone3000I'm sorry. I was just looking for a contains function.
ScribbleJgrep!
Oh, I see that's been suggested.
bpalmergasp!
Chris62vwperlbot contains
perlbotType "perldoc -q contain" at a prompt to see many great examples of how you can figure out if a list contains a certain thingie. You might not want to use something like "grep { $thing eq $_ } @stuff" because it is expensive if @stuff is large.
PerlJamfreeone3000: depending on the exact nature of your problem, you may want to just use a hash instead of an array.
Chris62vw++
freeone3000Chrisvw++
Chris62vwuse List::Util's first() function if you want to find something in a list of things too, or a hash, or a
actionChris62vw bows
Chris62vwbows
PerlJamChris62vw: if enough people say the same thing, eventually the words will be different enough that understanding is possible :)
dharPerlJam: that's a quotable
freeone3000my $matches = List::Util::first({$newfn eq $_}, @used);"
Chris62vwPerlJam, yeah, that is so true :-)
simcop2387eval: @a=qw(a b c d e f g 1 2 3 4 5 6); @hash{@a}=@a;
buubotsimcop2387: 13
freeone3000Sorry, quote too close to enter. ANyway. That gives me a "Type of arg 1 to List::Util::first must be block or sub {} (not single ref constructor) at /home/james/programs/remove-fansubs.pl line 48, near "@used)"" error. Why?
Chris62vwfreeone3000, more like first { } @stuff - your parens are funky
look at what you have
namedriskwould you guys know a different way to send the command at the line 19 of this code ? http://sial.org/pbot/24682 , i have used print but didnt worked either
f00li5hChris62vw: is first really a list operator?

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

IrcArchive