| |
| |
| |
|
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
Comments:
<0> Lynx_: Plus, if I say "web-enable" when my dad is near, he suddenly won't listen anymore <1> LOL <1> I killed buubot <2> $30/year is expensive? <0> Elly_Laptop, How? <2> Have you priced _real_ phones? <1> haha <0> Masque: Too expensive for me <1> better tell buu first <0> Elly_Laptop, Nah, lemme try it too ;) <0> lol <0> buu, you here? <1> the bot's gone <1> can't try it :P <3> Elly_Laptop: Okay, I'm here, how did you do it? <3> (A)
<4> Elly_Laptop: did you use the eval feature? <5> |buu: look at #buubot? <1> Lynx_: ya <3> Ani-_: Yeah, doing. <6> what are the good trick to debug a variable ? I heard about Data::Dump ... <1> Data::Dumper and perl -d <1> for all your debugging needs <7> Hello everyone <7> Is there any IDE for Perl? <6> okay Elly_Laptop <1> Boug: Komodo, by ActiveState <7> But I have to pay for the using it <1> ah <1> well <7> I am looking for a free one <1> I don't know of a free one <1> google a bit maybe <7> I looked for it through google but i found nothing <8> Boug: EMACS! <4> Boug: there is EPIC for Eclipse <8> and that, yes <7> EPIC is a plugin for Eclipse <7> Does it work well? Any tutorial about it? <8> never tried... <7> except EPIC or EMACS, there are really any ide for perl <4> EPIC always had some problems displaying variable values at breakpoints, but maybe they fixed that <7> Any opensource project about building an IDE for Perl? <1> hey, lilo, are you around? <9> Boug: there's www.vim.org <6> I want to match username + the letter N concatenated , is $line =~ m/$userN/ right ? <6> the user is in $user <6> the username I mean <10> should be simple to check? <6> it is not working <6> Use of uninitialized value in regexp compilation <10> eval: $user="foo"; "fooN bar" =~ /$userN/ ? "works" : "fails" <1> if you do that, perl will think you want a variable called '$userN' <10> no eval? <6> yes Elly_Laptop <1> bot's dead <10> rip <1> phearless: you want: $un .= 'N'; $bar =~ /$un/ instead <6> good idea <2> ${user}N <10> better: /\Q${user}N\E/ <1> yeah <2> Um. <2> Please define "better" there. <2> \Q\E has its uses, but randomly encapsulating variables isn't generally one of them. :) <6> Masque your solution is perfect <2> Well, it works. I'm not sure that's perfection, but yay. <5> Masque: better? Simple. What if $user has *? Or .? <5> eval: $user="foo **"; "fooN bar" =~ /${user}N/ ? "works" : "fails" <2> Ani-_: Well, gosh! What if it's undefined? What if it's a hash reference? <5> Bad Elly_Laptop! <2> What if it's a FILEHANDLE?!??!?!!/111?OMGNOES <1> Ani-_: :( <1> I didn't think it'd WORK <5> Masque: then you only get a warning. Not an error. <6> it works for me... <6> next question
<0> meh <0> I really need a clear simple Tk::grid example <6> how can I use *last* (or something similar) to escape from TWO levels of loops, not just ONE ? <0> I have a file here, but it's not very simple <5> phearless: perldoc -f last but start with perldoc -f redo for an example <1> last LOOP <0> how can the grid know how many rows and columns are max? <5> We need buubot! <0> etc <5> Someoen wake buu! <2> Ani-_: My point is that I was answering the _question_, and not attempting to ***ume I knew anything about the data or the code around it. Is not my job. Is ***uming, otherwise. <6> okay <5> Masque: You asked 'please define "better"'. The better thing is that you do not get a fatal error. Thus I answered YOUR question. <2> Mmm. And I disagreed. <2> And really, what if $user had a pattern in it? <2> And what if that was wanted? <2> Now you have a SILENT error. <5> Masque, so you are saying that having a fatal error is better? <2> And that's worse. <2> Yes. <0> My bot has an autorespawn thingy <5> Masque: the always spoke about the username. A username is not a pattern. IF he wanted a pattern then we would have said so. <2> hahaha <5> Masque: you just ignore the issue completly. While torbjorn strongly suggested it. <5> Which is better? Ignoring it and letting the user run into problem and then wait until he comes back? Or give proper advice from the first time? <11> Answering the question is like giving people fish <2> Firstly, it's not an issue. Second, it is proper advice. Third, he's already ignored the documentation, so now he's got advice he won't understand. Fourth, it wasn't EXPLAINED, so it wasn't "learning", it was.. right, fish. <11> Especially since it relegates you to the status of searchable documentation. <2> Build a man a fire, keep him warm for a night... <11> Right. Why not use your experience to instead set him on fire? <12> Gumbybrain, set a man on fire... <13> You are explicitly printing a \n which is \x0a on your way! <5> Masque: Did you point him to the documentation? If not, then how do you know he ignored it? He might have been unable to find it. Learning? He should be smart enough to go look at perldoc perlretut to see what \Q \E means. Or ask it (and then get pointed to the POD). <12> Brend, damn you <2> That's cool, though, Ani. Welcome to some variant of #perl. Enjoy. Eventually you'll sound like me. <2> "he should be smart enough" <5> Masque: really? How long have you been here? <2> Okay, rephrased: Welcome to IRC. <2> You'd have to define "here" more closely for me to answer that with any accuracy. I'm making a cameo on freenode. <2> How long have I been in #perl? Hmm. Eight years. <5> Only eight? <0> lol <2> Yes, that's right. <2> Merely four years longer than freenode #perl has existed, that's all. <0> even less maybe <0> gumbybrain: connect to gumbynet and spread the virus! <13> Connect to gumbynet and spread the script up every day, that means each manager makes $1 million per year, right? # Http://www.forbes.com/home/feeds/ap/2006/07/13/ap2877567.html. <14> GumbyBRAIN's url is at http://xrl.us/psaa <13> There is http://xrl.us/psaa. <0> looool <2> Generally speaking, advice given at a higher or deeper level than is necessary or requested is used, but ignorantly so, and actually results in them returning later saying, "OMG HALP! WHAT DOZ THIS DO?!?!?" <12> yay <2> But feel free to keep correcting me. I'm sure I'll come around eventually. <12> perlbot, karma GumbyBRAIN <15> Karma for GumbyBRAIN: 47 <0> Gonna reboot into linux i think <0> i'll brb on my desktop <7> Kulrak : According to www.vim.org, it may exist a vim script which can make vim a perl ide <7> Kulrak : Is that right? <2> Boug: What do you want that a text editor and a shell won't give you? <7> Masque : I started reading the doc about this vim plugin. It matches my requirement <7> I will test it right now <2> That's nice. I'm still curious what the answer to my question is. <16> quick question: I want to create an array of numbers and charcters, akin to 1-9A-Z, but I can't remember what the syntax to do this is, can anyone help? <2> .. <17> SpoonMeiser: 1 .. 9, 'A' .. 'Z' <16> Do I need to put that in brackets? <2> You're creating a list. <2> Do with it as you will. <7> Masque : I did not understand your question <2> Boug: Wondering what it is that vim and a shell don't already do for you. <18> write his code
Return to
#perl or Go to some related
logs:
#math ipv6 tunnel freenode
Cannot find Tcl configuration definitions Modification of non-creatable array value attempted, subscript -1 PHP Editor for Ubuntu is ubuntu secure? ubuntu startup microcode5
klipper systray #physics #debian
|
|