| |
| |
| |
|
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
Comments:
<0> War and Peace was the sort of literary misadventure you undertake when really, really, really ****ing drunk. <1> freakman, that's a pretty good question - i don't know <2> integral: I figured if you have to keep notes on a book, it's probably not worth reading. <3> x80: I think that it's called "Tk". <4> tried that too....must be a problem with cpan grr <4> keeps giving me this crap: LWP failed with code[404] message[File '01mailrc.txt.gz' not found] <3> Yes, it does have its problems. Try adding another mirror address to it. <5> sounds like the mirror is hosed <1> freakman, i mean the obvious is to match it and then grab pos and then set pos for the s/// <1> but i've never done that;) <6> so i've been reading up on scope and lexicals, and have a better understanding of them now, but now i have a question... <7> I must have been ****ing drunk for a whole freaking *MONTH* <7> buu: It's actually a damn good book. <2> integral: Really? <7> All the well known russian ones are <2> How so?
<0> Being all blotted. Being proposed to save you from the window. Then i make madam mina, and again tried to sleep, but with intention. It were as fond of dancing was a terrace, and from a fearful. <8> freakman: you could add it to the regex <7> it's a great epic sweeping from society through wars etc <2> csb: Did you read "coping with scoping" ? <0> ^^^ I mean, god. <7> ew73: is that a summary? :-P <0> integral: No, that's from my hal! <9> How would I make a perl script execute a file in linux called "run.sh"? <8> s/(foo.*)foo/\1bar/ <7> Jrex-Linux: system("run.sh"); <9> ty! <10> Kulrak: what do you mean? <2> Kulrak: Back references in the rhs of a s/// op are deprecated. <1> :( - that ****s <6> if i use strict, and have a statement like "if (this) {my $Val = "yes"}... how do i get that to work in the main part of the script in another statement like "if ($Val = "yes") {do this} <1> $1 then <8> oh well <6> i ***ume use a global of some sort <3> csb: Delcare it unconditionally, set its value conditionally. <2> csb: You have to declare it in the larges scope you need it in. <6> buu: yes i read that a week or so ago, although i have to admit i should read it again now that i have a better understanding <11> my $val; if (..) { my $val = "yes" } ... if ( $val eq "yes" ) { ... } <1> the rhs of a s is not a regex so how could backrefs ever work there? <6> buu: that's what i though. just at the begining. so that's not bad form? <11> er <11> my $val; if (..) { $val = "yes" } ... if ( $val eq "yes" ) { ... } <3> jdv79: They work outside of a m//. Also, it's a special case. <3> if you mean $foo, vs \foo <2> csb: Well, it's bad form to do it where not needed. Generally it's good practice to scope them as tightly as possible. Sometimes this means making them file scoped or global scoped. <6> that's what i thought i should do... i just didn't know if that was bad form. that's good though, so this stuff is starting to make sense to me <6> buu: and "file scoped" is just putting a "my $val;" at the begining of your script <3> csb: Unless that's within a package, yes <2> b0at: Not so. <3> consarn it <2> csb: Yes, every time perl parses a file via do, use, require and similar, it creates an implicit lexical scope. <2> eval: use strict; package x; my $foo; package y; $foo=52; package main; $foo <12> buu: Return: 52 <10> hm <2> Note that packages do not create lexical scopes. <10> is there a boolean operator for "and not"? <1> i was under the impression that backreferences are for inside the same regex and $1, $2, etc were the same data just outside of that regex <2> jdv79: They are. That's why it's bac practice. <2> s/bac/bad/ <2> jdv79: However \1 and friends were hacked up to actually work outside it, for some unknown reason. <2> freakman: 'and not' =] <1> weird that you say it actually worked that way though <10> buu: I am so dumb. <13> buu: sed lovers? <14> jdv79: backward compatibility for backward people. <2> Supaplex: Probably. <13> beth++ spot on :) <2> eval: $_="beth"; /(\w+)/; "\1" <12> buu: Return: <2> Hrm.. <2> eval: $_="beth"; /(\w+)/; "$1" <12> buu: Return: beth <2> eval: $_="beth"; s/(\w+)/\1_omg/; $_ <12> buu: Return: beth_omg <2> Interesting. <14> the rhs of a s/// has special almost-regex properties <14> specifically, that one.
<1> thanks for the lesson <2> beth: Isn't my bot nifty? <14> it is! <2> Yay! <14> is it reasonably break-proof? <2> Yeah. <14> so then you won't mind if I do this... <2> Not at all. <2> It hasn't even been banned in like a month. <3> heh <1> buu++ <14> eval: while(1){ print "buu is a dork"} <2> b0at: I'M DOING GOOD. <1> that's just cause somni went missing though <3> hehe <2> beth: I can't figure out how to get output when the thing terminates <2> Is there a signal I can send that flushes buffers some how? <3> Put a sign on the door that says "flush when buffers are full" <2> =[ <3> "Welcome to our erl. Note that there is no 'P' in it." <2> Cute. <13> hehe <15> Ooo... the origin of the Lone Ranger. <15> Now I know where he got his name. <1> a w e s o m e <8> Yaakov: a writer? <15> Kulrak: In the Lone Ranger universe. <15> Ooo... he is lecturing to a boy that he has to go to college. <15> While he brings law and order to the west. <15> College is preperation for manhood! <7> I wish rubric was even more general. <7> I can't attach notes to people. I can write general entries and tag then like with "person:YAAKOV", or I can make up urls like "person:YAAKOV", but tags lack all that lovely computer processable semantic information. <7> Some kind of cross between tagging and actual records/cards <9> :( I can't get this script to do anything: http://pastebin.com/531181 <16> The paste 531181 has been moved to http://erxz.com/pb/513 <15> integral: Once you put that YAAKOV thing on there, you are pretty much done. <7> HyperCard with tagging and wiking and RDF and full-text searching <7> Yaakov: but the computer doesn't know it's a person. I can't say: list all people plz. <17> is 0x8e6 in hex equal to the decimal 2278 ? <15> integral: I am using VoodooPad Lite, so far I like it. <7> eval: hex "8e6" <12> integral: Return: 2278 <15> integral: Because it isn't a lifestyle. <17> thanks <17> perlbot math 0x8e6 <18> 2278 <17> hah, that is easy. I was playing with sprintf and its formats. thanks <15> I hate applications that are actually the crystalization of someone else <15> 's neurosis. <7> I currently keep my journals in TextEdit rtf files, but once I denastified tiddlywiki a bit it's okayish <15> integral: tiddlywiki is WAY too crufty for me. <15> integral: Try VoodooPad Lite! <1> what about word press?/ <15> integral: It does RTF. <9> Any clue at all? http://erxz.com/pb/513 does nothing when I run it, as far as I can tell <7> jdv79: tried that. I have no idea how to theme the damn thing. <15> integral: It is basically a desktop wiki with graphics. Nice and simple. <7> it also stick links like "site admin" on the public interface <7> oooh! <7> I wonder if I can integrate it with the mythical semantic database thingie I want to write <2> Jrex-Linux: Add debugging statements. <9> Um.... <9> I know nothing about perl at all <1> Jrex-Linux, ask wherever you got that thing <9> I didn't even make hat script <9> ok <15> Probably not. It isn't open source, but there are some wiki implementations for OS X desktop that are. <7> I'm a bit nervous of desktop things since I only have one OS X box. <7> and at home my workstation there has a way nicer screen <15> I use my notebook as the core of my computing. <1> not your brain?! <1> you could lose your notebook
Return to
#perl or Go to some related
logs:
eastneo #lisp #css #gimp faac 1.25 deb #perl gentoo error 80 #mysql server-ip packman #web
|
|