| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Comments:
<0> honestly, all that is needed is Array::PAT <1> GumbyBRAIN, Nos Feratu Dos Si Est Yo Quero taco bell <1> GumbyBRAIN??? <2> Shadda: Yo yo yo. <1> lol <3> several of the MoreUtils are listed in List::Utils as rather easy to implement i believe <4> i've a file with couple of lines, in the first line i must extract the package name, and in the second line of this couple i have to extract a number... is possible to write a regexp for this things? <5> hey all if I wanna link a perl app to a mailer, what module should I look at <6> does anyone know of a statistics module for perl? something that can easily draw numbers from a normal distribution for example would be useful? <7> prism: too vague, spammer. <8> Statistics::Descriptive <7> ror: search.cpan.org <5> sili_, what the hell? <7> prism: wtf? <5> why did you just call me a spammer im only making my website email new users <6> yeah I googled at the same time as asking, I should really have let the google result page finish loading o0
<7> prism: your question is still vague. i don't know what you mean <5> ... <7> ... <7> merlyn loves ... <9> mashed potato! <7> mashed cauliflower <7> it can be made to taste almost like potato, but nt <9> I don't think badger likes that <7> badger loves all mash. <10> integral, you must know PDL <9> no, I do not know PDL. <7> pdl is for crazy people <9> I also do not know why my 8250 code isn't working right. <7> integral: pebcak. always. <7> jsn: perl mailing lists dude. <0> jsn: hello there <7> jsn: even perlmonks <9> my code appears to do all the same handwaving as linux even <11> hi <11> is there a simple procedure that combines 2 arrays into one? <12> combine in what way? <9> mun: combine in what way? <12> concatenate? <13> sub cat { @_ } <11> yes <12> heh <13> :o) <9> mun: you can probably use the free-theorem theorem to figure out all the possible ways <12> @a = (@b,@c) <7> sub cat {@_} # this tickles me for some reason <11> that's it, thanks. <0> mun: I suggest Array::PAT <13> sili_: yeah <7> i'm not sure what it is <13> sub snail{ @_ } <13> :) <14> :D <7> Array::PAT makes me sad inside. <9> Botje++ <15> sili_: i had that on a test yesterday and neither of the two job applicants didn't get it <15> s/didn't get/got/ <7> pravus: how to "join" arrays? <9> pravus: they didn't get the job either? <15> sili_: the question was: given foo(@a,@b) write foo() such that it returns the concatentation of @a and then @b; <14> hah <15> integral: well, we weren't hiring perl programmers... just looking for perl skills... of which they had none <7> pravus: haha, that's a good applicant filter <9> The killer job interview question would have to be: "What's the difference between 'catenate' and 'concatenate'?" <12> same as the difference between "chili" and "chili con carne" <9> vegetarians? <7> haha. <15> integral: ARGH! <12> the best chili I've had was in new york city, of all things <12> second best was here in burbank <14> thanks for that usual piece of information <6> what's the proper name for using a variable in a different variable name so I can look up the proper documentation? <9> ror: soft reference, but don't do that... <9> perlbot varvarname
<16> Why it's stupid to `use a variable as a variable name' - http://perl.plover.com/varvarname.html <6> lol ok <6> what should I use instead? just arrays? <9> or hashes. <9> "Hashes not stashes". <12> definitely don't do that. <12> hashes <12> yes. hashes not stashes <9> implement your own hashes using vec <12> don't let your data become code. don't let your code become data. <12> the security mantra <9> And always brush after every meal. <12> with a comb! <10> It wasn't painful, it was very, very expensive. <10> Well, the pulling wasn't that expensive, but the replacement will be thousands. <9> find a dead tramp? <17> When I had my wisdom teeth out, one had rotted. The dentist would be like *pliers* pry pry *distressing CRUNCH* *chisel-looking-thing* *pliers* repeat <10> My wisdom teeth came out perfectly healthy. <13> ew73: been there done that <17> Thank god painkillers work well on me. <13> but it wasn't even a wisdom tooth <17> Botje: It was awesome 'cause the dentist was a little asian woman, and you could just tell she was >< this close from powering up and wtfpwning my mouth with a kamekame blast. <13> lol <11> hi.. i'm trying to split strings that are in the format of "foo bar", "[foo bar] baz", "foo [bar baz]", and "[foo bar] [baz bay]" into two, i.e., {"foo", "bar"}, {"[foo bar]", "baz"}...{"[foo bar]", "[baz bay]"}.. i'm using Regex::Common::balanced, but it seems to return the entire string "[foo bar] [baz bay]" if that was given. Am i missing something? <9> ah ha! I think I've found my bug. it's fun and interesting, and due to having just one interrupt line, but multiple priority interrupts <9> so you have to keep poking the chip until it's told you about *all* the interrupts <13> lol <9> If PFGAs were cheaper we could all just design perfect bug-free easy to program chipsets! <18> s/PFGA/FPGA/ <9> mun: while (/\G(?:\S+|\[[^]]+\])/g) { } <13> integral: please tell me you copied that from somewhere. <9> nope! but considering my typo above I'm sure it's broke <13> well, the \S+ will take precedence over the second branch <13> always <9> see? :) <9> mun: swithc the branches of the | <11> ok thanks <9> mun: of course you can use Regexp::balanced inside the [] branch too <11> but, just for curiousity, can i get Regexp::balanced to split "[foo bar] [baz bay]" up? <9> oops, I mean Regexp::Common::balanced <9> hmm, no idea. <11> yeah, that's what i meant too <18> you should be able to just fine. Just use [] as your delimiters that need balancing. <9> I thought the problem was that it considers "()()" balanced (also: "(()())")? <18> I haven't used RE::Common in a while but I seem to recall that you can twiddle the greediness. <6> is there a quick way to sum all the values in an array? <9> ror: List::Util::sum <11> hmm.. <9> my$s=0;$s+=$_for@a; <9> my$sum=do{my$s=0;$s+=$_for@a;$s}; # more useful imho <11> i'm using ./$RE{balanced}{-begin => "\""}{-end => "\""}{-keep}/ <6> thanks <11> oops, that was from another line <11> change to [ ] respectively <18> oh, Regexp::Common::balanced works just fine. (as I think it should anyway) <9> mun: use \[$balanced_bit_here\] <18> perl -MRegexp::Common=balanced -le '$_="[foo bar] [baz blat]"; print $1 while /$RE{balanced}{-keep}{-parens=>"[]"}/g;' <11> PerlJam Returns a pattern that matches a string that starts with the nominated opening parenthesis or bracket, contains characters and properly nested parenthesized subsequences, and ends in the matching parenthesis. <9> or even: \[(?:$balanced_bit|[^][])\]/ <11> it sounds like it should anyway :( <11> let me see <18> run the comman line I just pasted <18> s/comman/command/ <11> okay <11> thanks <11> oh indeed <11> i wonder why.. <11> i'll keep looking.. thanks a lot guys! <19> L~R. <14> Hail. <13> from above? <20> hobbs <19> Botje: where else does hail come from?
Return to
#perl or Go to some related
logs:
make menuconfig processor core duo ldap accent collation select_form predicate gentoo sony cybershot kernel compile turn off php noticesin html suse 10.1 wifi 3945 #ldap lcdproc irtrans #perl tightvnc init script
|
|