#perl
14 October 2007
Total 42 pages. You are browsing page 2/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
00:47 <****> haha
00:47 <****> eval: $line = "1 2 3 4"; () = split " ", $line, -1
00:47 <****> mauke: 4
00:48 <****> sabooky: you need a -1
00:48 <****> mauke: You are a horrible person.
00:48 <****> ehtom - you may be mildly interested in http://perlmonks.org/?node_id=624445
00:48 <****> shardz_gen: fork might suit you well
00:48 <****> ew73: what!
00:48 <****> SubStack: looking into it, thanks
00:48 <****> or just system or the like with a & at the end if you're feeling particularly lazy
00:48 <****> mauke: wtf is a -1?
00:48 <****> a number
00:49 <****> useful, but its perl unfortunately
00:49 <****> embed perl in your c app :)
00:49 <****> SubStack: asked him if i could do that with python... he said no
00:49 <****> mauke: K, I think I officially give up on understanding perl. I'll use it for small sysadmin stuff, cause anything more complex doesn't seem to make any sense for me. Thanks for your help.
00:50 <****> sabooky: yet
00:50 <****> whatever
00:50 <****> try again when you have more time.
00:50 <****> plenty of good documentation lying around to fix that
00:51 <****> Limbic_Region: ok, so the regexp route is a pain, so is there a way of doing what I want easily and in C?
00:52 <****> Is there a way to somehow globally prepend a string to any output to STDOUT STDERR? Basically I have a script that forks and the kid runs another script. All output is sent to the same terminal and I want to easily differentiate between parent's and the kid's output by prepending, say "KID: " to any output from the kid.
00:52 <****> $line = "1 2 3 4"; () = split " ", $line, -1 vs len("1 2 3 4".split()) <= things like that make the transition for me very hard. I'll still use perl, I'll just keep it to a minimum (maybe with time It'll make more sense to me)
00:53 <****> perlbot, perldoc perlvar
00:53 <****> Documentation for 'perlvar' can be found here: http://tinyurl.com/yo88rz
00:55 <****> set $\ to "\ndoom: " and print off an empty line at the start and end?
00:55 <****> messy though
00:55 * ew73 sticks a bloody rabbit head on a pike!
00:55 <****> sabooky: transition from what?
00:56 <****> GumbyGumby: rabbit fish!
00:56 <****> SubStack: Teaching people that #perl is a fish.
00:56 <****> Zoffix: tie!
00:56 <****> :o
00:56 <****> GumbyGumby: #perl is a fucking llama.
00:56 <****> ew73: What a fucking llama.
00:56 <****> And how!
00:57 <****> ew73++
00:57 <****> GumbyGumby: Vicuna ew73!
00:57 <****> kspath: i see and hear about countless fools, morons, and idiots from irc while you can say that's gonna bring this up with so far.
00:57 <****> is this mjd's blog: http://blog.plover.com
00:57 <****> perlbot ew73
00:57 <****> So you're like, going for the boob grope and complient "her" on her awesome hippie pit-hair, and then you're like, "those are /man/ boobs!" and then suddenly, you realize you're making out with a dick hippie.
00:57 <****> ..yeah.
00:58 <****> o_O
00:58 * CPAN upload: Cairo-1.043 (++++ ) by TSCH
00:58 * CPAN upload: Astro-SpaceTrack-0.029 by WYANT
00:58 * CPAN upload: Hash-Dirty-0.023 by RKRIMEN
00:58 * CPAN upload: File-DirList-0.01 by TPABA
00:58 * CPAN upload: Test-Weaken-0.001_005 by JKEGL
00:58 <****> tybalt89: python. To be fair it's nothing against perl, it does some stuff better and some stuff worse. Just perl syntax is harder to learn. The stuff perl does better I'll keep, everything else I'll leave to python where I'm more comfortable.
00:59 <****> those dirty, dirty hashes
01:00 <****> SubStack: Perl's sytnax is better so it's harder to learn.
01:00 <****> WHY AM I TAB COMPLETING DIRTY PEOPLE
01:00 <****> AND WHAT THE FUCK IS CAIRO.
01:00 * SubStack gets in the way.
01:01 * SubStack covers buu in hashes.
01:01 <****> SubStack: dirty ones?
01:01 <****> the dirtiest
01:04 <****> herm... maybe it's dns issues
01:04 <****> GumbyGumby: Your opinion on dirty people, esp. hippies, the homeless, and other unsavories?
01:04 <****> ew73: But there are people of the other.
01:05 <****> I read that as "Ignore them all".
01:05 <****> ever since ive started writing C ive begun using tabs instead of double spaces in my programs...
01:05 * SubStack <3 4 space indentation.
01:05 <****> Use tab char, adjust editor to personal preference.
01:06 <****> pfft
01:06 <****> THEY ALL MUST CONFORM TO MY STANDARDS!
01:06 <****> heh
01:06 <****> CONFORM to 4spaces or DIE!
01:06 <****> and what do you use? space tab space?
01:07 <****> Honestly, I tend to use eclipse and let it worry about that shit for me.
01:07 <****> What editor do you prefer?
01:08 <****> vim of course
01:08 <****> THE STANDART SPELLING OF STANDART IS STANDART!
01:09 * SubStack is shamed.
01:10 <****> Don't worry, a good laundering will get rid of that.
01:10 <****> Mission accomplished.
01:10 <****> :)
01:10 <****> Never liked vim... nano isn't too bad
01:10 <****> ...
01:11 <****> behehe
01:11 <****> Khisanth, so far I am getting "Out of memory!" and "Segmentation fault. Core dumped" with my attempts
01:11 <****> everytime EDITOR doesn't get exported properly and I somehow find myself in nano I die a little on the inside
01:11 * Zoffix tries harder
01:11 <****> ?
01:11 <****> haha
01:12 <****> Khisanth, with tieing filehandles
01:12 <****> I think the problem is tied STDERR triggers PRINT from STDOUT or something
01:12 <****> Or I am doing something completely stupid.
01:12 <****> I think the only really i like nano is that ive used pine for mail since... well forever :p
01:15 <****> GumbyGumby is a memory hawg to
01:15 <****> Supaplex: To be upset about what you had access to memory.
01:16 <****> hm
01:17 <****> I think it's impossible to do Khisanth, If I tie STDOUT then it core dumps with "Deep recursion" because I am printing to STDOUT in my PRINT{} method :\
01:17 <****> yeah it does seem like you are doing something stupid
01:18 <****> Penguins are the only fish that can fly
01:18 <****> UNTRUE
01:18 <****> bah
01:18 <****> I have been to the Pike Place Market.
01:28 * CPAN upload: Acme-emcA-0.10 by AUDREYT
Total 42 pages. You are browsing page 2/42.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
