| |
| |
| |
|
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 38 39
Comments:
<0> Did I? <1> hey buu <1> hey all <2> buu: If you didn't then it is YOU that is broken. <0> !define thesaurus <3> thesaurus ( P ) Pronunciation Key (th -sr s) n. pl. thesauri (-sr ) or thesauruses A book of synonyms, often including related and contrasting words and antonyms. A book of selected words or concepts, such as a specialized vocabulary of a particular field, as of medicine or music. <3> ..[Latin th saurus , treasury , from Greek th sauros .] thesaurus n : a book containing a cl***ified list of synonyms [syn: synonym finder ] <0> Oh what the **** <2> Ew! <0> lidd: is spamming me dict crap <4> you're mangling your utf8! <0> integral: NOT ME <2> I HATE UTF-8. <5> utf-8 is in your future. <6> I hated utf-8 in perl till I read uniintro :) <7> It looks great when it doesn't show up as bright-backgrounded in irssi
<8> !define buu <8> =[ <2> I cannot view UTF-8 in irssi. <2> It is hateful. <9> !define nox <3> nox n : Roman goddess of night; daughter of Erebus; counterpart of Greek Nyx [syn: Nox , Night ] <8> !define cock-muncher <3> cock 1 ( P ) Pronunciation Key (k k) n. An adult male chicken; a rooster. An adult male of various other birds. A weathervane shaped like a rooster; a weathercock. A leader or chief. A faucet or valve by which the flow of a liquid or gas can be regulated. The hammer of a firearm. The <3> ..position of the hammer of a firearm when ready for firing. A tilting or jaunty turn upward: the cock of a hat. Vulgar Slang. The penis. Archaic. The charact <10> !define goat felching zombie whore <3> goat ( P ) Pronunciation Key (g t) n. Any of various hollow-horned, bearded ruminant mammals of the genus Capra, originally of mountainous areas of the Old World, especially any of the domesticated forms of C. hircus, raised for wool, milk, and meat. A lecherous man. A scapegoat. Goat See <3> ..Capricorn . [Middle English got , from Old English g t.] goat ish adj. Capricorn ( P ) Pronunciation Key (k pr -krn ) also Capricornus ( <10> boo. <2> Uh oh. <5> !define thesaurus <3> thesaurus ( P ) Pronunciation Key (th -sr s) n. pl. thesauri (-sr ) or thesauruses A book of synonyms, often including related and contrasting words and antonyms. A book of selected words or concepts, such as a specialized vocabulary of a particular field, as of medicine or music. <3> ..[Latin th saurus , treasury , from Greek th sauros .] thesaurus n : a book containing a cl***ified list of synonyms [syn: synonym finder ] <8> WEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE! <2> !define aeolipile <3> aeolipile \[AE]*ol"i*pile\, AEolipyle \[AE]*ol"i*pyle\, n. [L. aeolipilae; Aeolus god of the winds + pila a ball, or Gr. ? gate (i. e., doorway of [AE]olus); cf. F. ['e]olipyle.] An apparatus consisting chiefly of a closed vessel (as a globe or cylinder) with one or more projecting bent tubes, <3> ..through which steam is made to p*** from the vessel, causing it to revolve. [Written also eolipile .] Note: Such an apparatus was first described by Hero o <10> uh oh <11> umm, botspam? <10> SOMEBODY RESTRAIN BINGOS <2> GET A ROOM <12> hi <8> Kinky. <0> IT WAS HANDY <8> Welcome to #perl! <2> LEAVE THE CHANNEL BED OUT OF THIS <7> buu: Ew. <11> hi tomatoE <12> I am trying to remove a line from a file if it contains $var <12> is this correct: perl -ni.bak -we 'print unless /$var/;' file.txt <0> Tomatoe: I suggest a powersander. <12> oh.... <11> tomatoe: does it work? <2> Tomatoe: What happens when you try it? <12> well it works for one of my scripts but not another <12> and I read on some website that that is correct <12> but it does not remove any line <10> Tomatoe: what do you expect $var to be ? <12> an E-mail address <11> well you better set $var then <13> do you actually have a $ v a r in your file? <13> that's what you're matching <12> no <7> Tomatoe: You have to set it. Or just replace '$var' with whatever you want it to be. <12> ohhhh <0> merlyn: No he isn't! <13> Oh wait, no, it's the perl variable <13> sorry <11> merlyn: won't it become undef? <11> ah <10> Tomatoe: did you escape the @ in the email address? <11> he doesn't set $var <13> botje - hint - that won't matter <13> if he's using $var perl var
<12> this is exactly what I have: $var = 'me@email.com'; $res = `perl -ni.bak -we'print unless /$var/;' file.txt`; <12> and it does not work <0> ewwwwwwwww <7> BinGOs: Did buu gag you or something? <10> Tomatoe: O_O <13> wait - WHY are you invoking perl from within perl <11> perl doesn't see $var set <13> that's NUTTY <13> don't do that <12> oh <11> what merlyn said <10> oh noes. <10> look like botje was right and he didn't escape the @ <12> but thats a literal string <12> so I dont ned to \@ <13> { local *ARGV; @ARGV = "file.txt"; local $^I = ".bak"; while (<>) { print unless /$var/ } } <10> yes. <13> do that <13> that'll see your $var, too <10> but then you're calling perl. <12> ok ill do that <10> so let's play perl for a bit <10> $var = 'me@email.com'; "perl -ni.bak -we'print unless /$var/" <10> eval: $var = 'me@email.com'; "perl -ni.bak -we'print unless /$var/" <3> Botje: perl -ni.bak -we'print unless /me@email.com/ <10> oops. <10> looks like the exec()ed perl doesn't see escapes. <4> http://cabbage.org.uk/2006/perl/palendrome.pl # my script *is* bugged, right? <10> it's spelled with an I . <2> http://static-a.arttoday.com/thw/thw14/AF/animations/people_a_l/girl_young/geeky_girl_reading_perl_book/4955747.gif <14> I'm trying to use Attribute::Handlers, but the modules with the functions are being required from an eval, so I have to run my handlers in the BEGIN phase, which means that the function names aren't in the symbol table yet. Anyone know of a workaround to this problem? <8> Pmfmppfmp ppmmpp ppffmffmp ppfmpf mfpmpppffmpp!!!! <5> The requested URL is forbidden on this server. <15> hmm <2> Hrm <2> http://static-a.arttoday.com/thw/thw14/AF/animations/people_a_l/girl_young/geeky_girl_reading_perl_book/4955747.gif?geeky_girl_reading_perl_book_lg_wm <13> you can't use Attribute::Handlers except in pretty ordinary code <16> Yaakov's url is at http://xrl.us/oe9s <13> not eval'ed code <12> wow! that works! thanks all!!! <15> is this valid? $output .= $x eq $y ? $x : ' '; <13> you need to let them see an INIT phase, but that exists only at the main code between BEGIN and running <4> merlyn: unless you somehow don't use CHECK blocks <5> thttpd/2.25b 29dec2003 <12> thanks merlyn <4> err, INIT then <5> thttpd++ <7> Yaakov: Same error Yaakov <13> I ran into this problem when using POE::Session::Attribute <15> I've never seen an lval on a tertiary operator. <13> which uses Attribute::Handlers <10> what's a Yaakov error? <17> I'm able to access it, dabreegster. <10> cloaked: that's not an lval. <8> Yaakov: goddamnit! I thought that link was perl geek pr0n <10> it's an rval. <7> Aankhen``: Nevermind, elinks was storing it in the cache or something <13> BEGIN is too early... you can't get the sub name <13> and everything else is too late <17> dabreegster: Ah. <5> merlyn: did you get any mileage out of POE::Session::Attribute? or did you just abandon it? <4> oh, I see my bug. <1> hey merlyn <4> (overlapping palendromes) <13> oops <1> integral, playing with palendromes eh? <13> he left <1> :P <4> umm <13> cfedde - I'm using it heavily <18> Is there any way to stack __WARN__ handlers?
Return to
#perl or Go to some related
logs:
#perl ERROR 1142 (42000): UPDATE command denied to user ''@'localhost' for table 'user #debian binary representationquick division
ubuntu cups Print file was not accepted client-error-bad-request #gentoo javascript contentDocument.defaultView #lisp syntax error near unexpected token dbus #math
|
|