| dhar | beer and libre |
| Jmax | ooh nice |
| dhar | err maybe thats only OpenSolaris actually |
| freeone3000 | ...Mmkay. So I'm back to writing my own linear search. |
| PerlJam | ScribbleJ: good job! I remember the days of taking a hacksaw to my computer chasis to make things fit |
| ScribbleJ | hahah |
| PerlJam | ScribbleJ: cherish these moments while you can :) |
| ScribbleJ | It's been a long time since I've seen a full-length PCI card. |
| PerlJam | freeone3000: or you could use grep properly. |
| freeone3000 | Wait, 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? |
| namedrisk | hi, 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 |
| ScribbleJ | It 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. |
| PerlJam | freeone3000: you've gone off the deep end and made a simple thing very complex. |
| LisaLaptop | GumbyBRAIN, qu'est-ce que tu pense sur les examens? |
| GumbyBRAIN | Les femmes faciles! |
| freeone3000 | I'm sorry. I was just looking for a contains function. |
| ScribbleJ | grep! Oh, I see that's been suggested. |
| bpalmer | gasp! |
| Chris62vw | perlbot contains |
| perlbot | Type "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. |
| PerlJam | freeone3000: depending on the exact nature of your problem, you may want to just use a hash instead of an array. Chris62vw++ |
| freeone3000 | Chrisvw++ |
| Chris62vw | use List::Util's first() function if you want to find something in a list of things too, or a hash, or a |
| action | Chris62vw bows |
| Chris62vw | bows |
| PerlJam | Chris62vw: if enough people say the same thing, eventually the words will be different enough that understanding is possible :) |
| dhar | PerlJam: that's a quotable |
| freeone3000 | my $matches = List::Util::first({$newfn eq $_}, @used);" |
| Chris62vw | PerlJam, yeah, that is so true :-) |
| simcop2387 | eval: @a=qw(a b c d e f g 1 2 3 4 5 6); @hash{@a}=@a; |
| buubot | simcop2387: 13 |
| freeone3000 | Sorry, 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? |
| Chris62vw | freeone3000, more like first { } @stuff - your parens are funky look at what you have |
| namedrisk | would 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 |
| f00li5h | Chris62vw: is first really a list operator? |