#perl
05 October 2007
Total 43 pages. You are browsing page 2/43.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
00:24 <****> It did.
00:24 <****> reverse 'esraped :tobfres'
00:24 <****> apeiron: tobfres' 'esraped
00:24 <****> But not like it should have :(
00:24 <****> reverse esraped:tobfres
00:24 <****> iank: serfbot:deparse
00:24 <****> buubot: change 1 cad to usd
00:24 <****> jagerman: 1 CAD is 1.0033 USD
00:24 <****> anyway, it won't do what I want it to :/
00:24 <****> buubot: LIES
00:24 <****> kb3llm: why are you editing $_?
00:24 <****> buubot: seen jagerman
00:24 <****> test 1 2 3
00:24 <****> it hasn't even been set yet!
00:24 <****> system "vi", $_
00:24 <****> For some reason buubot isn't "seeing" anything in #perl?
00:24 <****> Botje: because thats what the script uses, according to the cpan page..
00:24 <****> kb3llm: you're looping over @$messages and $_ is set to each message in turn.
00:25 <****> so you need to do the s/// (and here's the tricky part)
00:25 <****> inside the loop!
00:25 <****> Botje: it prints fine, just doesn't filter.
00:25 <****> ohh.... ok..
00:25 <****> Botje: gumbybrain :(
00:25 <****> Botje: thanks.
00:25 <****> kb3llm: what made you think doing it that way would work?
00:25 <****> kb3llm, start with a perl tutorial, one WITHOUT modules!
00:26 <****> <-- GumbyBRAIN was kicked from #perl by f00li5h (come back when you have something to say)
00:26 <****> =O
00:26 <****> Botje: because i used it before, and then re installed linux, because i had some problems, and lost the script. I think it did it like this somehow, but i cant remember
00:26 <****> jagerman: :O
00:26 <****> f00li5h: :O
00:26 <****> kb3llm: don't make shit up, think instead ..
00:26 <****> iank, That's what answering customer emails does to f00li5h.
00:26 <****> perlbot: retardo
00:26 <****> YOU CAN'T JUST MAKE SHIT UP AND EXPECT THE COMPUTER TO MAGICALLY KNOW WHAT YOU MEAN, RETARDO!
00:26 <****> <3 that one
00:26 <****> or put stuff on a pastebot and let us look at it
00:27 <****> /exec echo 'foo' |pbotutil -
00:27 * apeiron coughs
00:27 <****> Botje: ??? I used to have the same script and it worked! I forget how i did it! I'm not making anything up... You dont think i had the script before?
00:27 <****> kb3llm: putting that line outside of the loop.
00:27 <****> kb3llm, I think you need to learn to fucking read when people tell you to instead of making more and more shit up and expecting it to magically work.
00:27 <****> there is no sensible reason for doing that.
00:27 <****> apeiron: sounds about along the lines of what reading bug reports from japanese people does to dwu
00:28 <****> mst, Indeed.
00:28 <****> Botje: yeah, that's true.. sorry for acting dumb...
00:28 <****> i will read more about loops.....
00:28 <****> perlbot, learning perl
00:28 <****> 1. "Learning Perl", the Llama Book - http://www.oreilly.com/catalog/learnperl4/ 2. Beginners' Portals - http://learn.perl.org/, http://perl-begin.berlios.de/
00:28 <****>. It's clear you don't know what you are doing
00:29 <****> which isnt' a problem if you just own up and think "how can I learn" but IS a problem if you pretend you do
00:29 <****> the llama is amazing, I heartily recommend it
00:29 <****> I wish I could be that harsh sometimes to some of the people in my CS lab
00:30 <****> they get paid for it :
00:30 * apeiron reconsiders taking a job in teaching.
00:31 <****> ror: i was reading http://www.perl.org/books/beginning-perl/ but i stopped.. I should finish reading it..... (especially about loops)
00:31 <****> I recommend a physical copy of a book it's a LOT easier
00:31 <****> ror, Not always.
00:32 <****> ror, And I would go so far to say that that's a personal preference.
00:32 <****> sure, it's my personal preference
00:32 <****> ror: why pay 40 bucks for a book when i can read it online, for free?
00:32 <****> I picked up a 3rd ed of the llama (learning perl) for about 6USD; I found it much better than anything online
00:32 <****> ror, There's also Safari, that lets you read them online.
00:33 * apeiron is kinda miffed that his _Mastering Perl_ offered a version of the book online for 45 days ... only to say "Oh, this book isn't in Safari yet"
00:33 <****> well, for a start you can more easily flick back to bits to check stuff; can more effectively look at your code and output on screen if you don't have multiple monitors, otherwise you're trying to keep the text on screen at the same time too
00:33 <****> this is just my experience, you could be difference
00:33 <****> *different, obviously
00:34 <****> i just wish there was a way to get the whole http://www.perl.org/books/beginning-perl/ book in a pdf... instead of every individual chapter
00:34 <****> Big displays are common these days, with really high res. You can have a substantial amount of real estate for a browser and a terminal.
00:34 <****> kb3llm, You don't want that.
00:34 <****> on the other hand, you can't grep paper.
00:34 <****> The resources to load that amount of data would be unwise.
00:34 <****> apeiron: why not? then i could DL it once and done
00:34 <****> iank, ... or PDFs
00:34 <****> apeiron: meh, pdftotext or whatever it's called.
00:35 <****> And if it doesn't let you do that, chances are you paid for it anyway, and it's your own damn fault :P
00:35 <****> Is there some sort of technique to take a list of string and hash them into buckets and then retrieve the bucket when you pass any string which would be in that bucket? there must be
00:35 <****> I men CPAN module. not technique
00:35 <****> *shrug*. I prefer physical books for a linear read. But if I'm using it as a reference, I like it on the computer.
00:35 <****> ... the CPAN module would have to use some technique
00:35 <****> hehe
00:35 <****> schemelab, It sounds like you want a hash.
00:36 <****> does sound oddly like a hash
00:36 <****> apeiron: bucket-hashing if you know what I mean
00:36 <****> like, %bukkits
00:36 <****> LOL
00:36 <****> nononono
00:36 <****> That's pretty much what it sounds like you're asking for -_-
00:36 <****> no :)
00:36 <****> schemelab, How does what you want differ from Perl's built-in hash type?
00:36 <****> Yes, it is.
00:36 <****> describe what this magical hash bucket does that a normal hash doesn't do
00:37 <****> bukkit, ror.
00:37 <****> apeiron: for instance. a simple bucket-hash would throw all values starting with 'a' in one index, 'b' another, etc
00:37 <****> schemelab, I'm not sure I understand the utility of such a construct.
00:37 <****> the whole point is when you need to search for a data item, you just search a bucket, not the entire linear list of data
00:37 <****> schemelab: like a hash?
00:38 <****> ... that's a hash.
00:38 <****> Perl's got those.
00:38 <****> schemelab, You want to be able to search for any *particular* string out of a set, and get a value corresponding to that set?
Total 43 pages. You are browsing page 2/43.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
