@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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 26 27 28 29 30 31 32 33 34 35 36 37



Comments:

<0> What have I done?
<1> beth, i'm trying to read a file located in a location relative to the .pm
<2> DrForr_: he has been around a bit.
<3> *UGH*!
<4> y'all get bored over in that other channel?
<5> UGH
<5> damn
<6> GumbyBRAIN: weep like a baby
<7> People like to make sure to only be a baby.
<4> come over here to do a bit of slummin?
<8> pbelau: why?
<5> cfedde - yeah. :-)
<1> beth, why do you ask why ?
<1> can it be done or not ?
<0> dha: see?!
<8> why would you need to read a file in a location relative to a .pm?



<9> cfedde: Pretty much!
<5> yes. that's what the gl***es are for. :-)
<3> Mostly current amusement sources are somewhat subpar. Not enough dongs.
<8> if you have a good reason, you won't mind telling me :)
<4> pbelau: you are using an ***inine way of doing a simple task.
<5> beth++
<10> pbelau: perhaps you should come up with a small test case and post it to a paste bin
<6> pbelau: search through @INC and %INC and you can
<4> pbelau: you're smarter than that.
<0> simcop2387: The module is obviously in %INC, and it's going to be really fairly easy to construct relative paths up from that.
<3> I thought those were bukkake shields.
<2> DrForr_: This channel isn't REALLY like that.
<6> eval: [
<11> simcop2387: Error: syntax error at (eval 177) line 16, at EOF Missing right curly or square bracket at (eval 177) line 16, at end of line
<0> Although I suppose you do need to strip the module name off the top
<6> eval: {%INC}
<11> simcop2387: 269/512
<8> pbelau: trying to determine if you're having what we call an "XY problem", where you're asking about X but you really want to solve Y. Sort of a "barking up the wrong tree" approach.
<6> neat
<6> eval: {%INC}
<11> simcop2387: 269/512
<6> doh
<1> beth, the module already works like this
<0> simcop2387: That's really odd..
<0> eval: +{%INC}
<11> buu: {'Net/DNS/RR/NS.pm' => '/usr/lib/perl5/Net/DNS/RR/NS.pm','Guile/stime.pm' => '/usr/local/lib/perl/5.8.7/Guile/stime.pm','norris.pm' => 'norris.pm','HTML/TokeParser/Simple/Token/Tag.pm' => '/usr/
<8> pbelau: if it works, what is your question?
<3> Oh. I see. This is apparently where we get the reputation of actually being a "perl help" channel.
<12> Heh norris.pm
<0> DrForr_: What reputation is that?
<1> beth, it needs to work with relative paths
<4> beth: most of us have decided pbelau is a lost cause. but maybe you'll to better.
<13> chuck would be happy
<0> buubot: mangle
<11> buu: DrForr_: What remarkableness is that?
<0> That's just weird.
<1> it's ok, i'm close to deciding that this channel is a lost cause :
<1> :)
<14> Why would a script run from a shell but from a browser, I get an Internal Server Error? My error_log does not change and I have cacheing turned off in Firefox
<13> you know where the door is
<8> pbelau: are you trying to use a configuration file, or what?
<12> SummerWO: did you print the header()
<12> ?
<1> beth, the module is, yes
<4> pbelau: you have coded yourself into a corner. Your only choice now is try another implementation scheme.
<5> Knowing almost *nothing* about pbelau's problem, I throw out the idea of NEXT::init
<8> ok. The thing calling the module, does *it* know where the configuration file is?
<14> No -- thanks!
<8> this is actually a somewhat interesting problem
<1> cfedde, i would never write something like this, but it's what i have to work with
<8> usually storing the config next to the module is *not* the best solution
<8> which is why I ask.
<14> Forgot.
<8> However, if you want to get the location of the module, buu's solution works well.
<1> well, as i said, i wouldn't do a lot of things the way they are done
<8> legacy code? :)
<4> pbelau: so you are asking us to try to solve a problm in some code you picked up off the internet somewhere?
<1> but it is what it is
<1> beth, yeah
<9> It's raining outside. You've nowhere to hide! She's asking you WHY you think it's funny.



<1> cfedde, no, it's old internal code
<3> buu: The weird reason that people stop in and think we're actually going to help people.
<1> some of which is, frankly, crap
<0> DrForr_: How bizarre.
<9> Caffeine, you are plagiarization's muse.
<8> pbelau: so, %INC is the answer
<4> pbelau: I recomend you recode it in C. then go over to #c to get help.
<8> right?
<9> DrForr_: So this isn't a help channel either?
<1> cfedde, it'd take forever to redo in C
<9> Wow. So this is like... the downstairs of #perl.
<0> hrm
<3> Do I look like I work here? :)
<5> masque - we're here. how could it be?
<9> hee
<4> Masque: this is a bit exceptional.
<1> cfedde, i'd probably do it in python or such if i had to start from scratch
<9> cfedde: Which? The looking for help, or the finding it?
<4> pbelau: you are free to do that if you like.
<8> pbelau: did you catch that, about the %INC? you haven't responded to me.
<9> pbelau: You didn't space that sentence properly.
<9> Syntax error, bub.
<0> beth: I said that a couple of times =[
<0> I tried! Really I did!
<4> Masque: absolute zombies like pbelau are pretty rare.
<8> which is why I'm asking if he heard it
<9> I think you can just make **** up and expect the computer to magically know what you mean, though.
<1> beth, i'm not sure what i'm going to get from inc
<2> #perlhelp on EFNet is like #perl's Bed and Breakfast.
<1> beth, buu is on ignore btw
<9> Yaakov: Oooh. So it's... danish?
<15> stupid question: Is DynaLoader known to be broken in ActiveState Perl for Windows?
<8> pbelau: %INC is a hash where the keys are module names and the values are their locations
<0> All my witty insults wasted =[
<2> Masque: Well, it is "international".
<4> buu: oh well.
<16> what does this error mean> Nested quantifiers before HERE mark in regex m/\Ahttp://(?:www\.)?* << HERE on this line of code: grep { $link =~ m!\Ahttp://(?:www\.)?$_!i } @_sites grep { $link =~ m!\Ahttp://(?:www\.)?$_!i } @_sites grep { $link =~ m!\Ahttp://(?:www\.)?$_!i } @_sites
<10> buu: we saw 'em!
<0> pravus: Yay!
<16> sorry - pasted it 3x
<0> forsaken: You can't have ?*
<4> we are back to the "bring me a rock" game.
<8> pbelau: buu is kind of a troll, but he also gives correct answers to most perl questions. He's worth unignoring.
<5> jsut off the top of my head, that error says "You got one fugly regex"
<2> cfedde: pbelau is frustrated that he has to use a language he doesn't like.
<13> forsaken, (F) You can't quantify a quantifier without interven-
<13> ing parentheses. So things like ** or +* or ?* are
<13> illegal.
<0> cfedde: Is that like bringing shrubberies?
<13> forsaken, perldoc perldiag, it's there :-)
<11> forsaken: Type 'perldoc perldiag' in your shell or go to http://perldoc.perl.org/perldiag.html
<1> beth, he's obnoxious. i'd probably punch him in the face if i met him in person
<16> ok :)
<4> buu: yes
<0> awhh =[
<0> cfedde: Excellent. Did you ever see spamalot?
<8> forsaken: you mean *?, not ?*
<4> buu: no
<0> cfedde: Yeah, me either.
<4> but I want to.
<9> pbelau: If you're still at the developmental stage of wanting to punch people in the face, maybe you shouldn't spend your recess time programming.
<5> ahem. the shrubberies predate spamalot by about 30 years
<0> cfedde: Is it only playing in new york or is it actually moving around?
<0> dha: There was python BEFORE spamalot?!
<5> I believe there is a touring company
<5> buu - :-p
<1> Masque, well you guys are still in the taunting stage, so i wouldn't talk :)
<3> But not touring LA.
<8> pbelau: he's actually somewhat civil in person. Anyhow, you caught the thing about %INC? I want to make sure, since some of these guys think you aren't listening to the answers they gave
<4> buu: it'll be in denver some time this year. but it's the "traveling cast:
<1> Masque, if you were so damn mature, you'd just shut the **** up if you don't have anything constructive to say
<9> pbelau: You wouldn't?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#suse
#python
#redhat
debian 404 128.101.240.212
ubuntu openssh cant find package
mplayer isn't working xgl
#gentoo
install rpm utility ubuntu
inxangoo
multiuniverse in Synaptic for limewire



Home  |  disclaimer  |  contact  |  submit quotes