#perl - Fri 4 May 2007 between 15:59 and 16:06



Prof_Vincesegfaults at each run here
dazjorzHi
..again
I'm having trouble with regexes, and that's a long while ago >_<
dkryeah, that's the old reliable one. my version is a regex for matching utf-8 encoded strings so it's a lot longer
Ani-_dkr: perl -e '$i = "i" x 30000; $i =~ /(?:[^@]|)*/gc;' also segfaults
dazjorz...wait, got it -_-
eval: "onething++" =~ /(?:\((.+?)\)|(\S+))\+\+/g; [$1, $2]
buubotdazjorz: [undef,'onething']
dazjorzeval: "(multiple words)++" =~ /(?:\((.+?)\)|(\S+))\+\+/g; [$1, $2]
buubotdazjorz: ['multiple words',undef]
dazjorzI thought they would be both in $1
Ani-_dazjorz: no. That never happens.
dazjorz: a new pair of () means a new variable.
dazjorz: But perhaps you want $+?
bigjohntoanyone have any idea why i am getting the make issue
dazjorzAni-_: Oh, no, I'll go with $1 || $2
bigjohntohttp://pastebin.ca/471049http://pastebin.ca/471049
buubotThe paste 471049 has been copied to http://erxz.com/pb/2491
bigjohntohttp://pastebin.ca/471049
buubotThe paste 471049 has been copied to: http://erxz.com/pb/2491
bigjohntosorry
dkrI "fixed" my code by using good ol' demorgan's law. instead of if ( /^(a|b)*$/ ) I did unless ( $_ !~ /a/ && $_ !~ /b/ )
Ani-_eval: $i = "i" x 22784; $i =~ /(?:[^@]|)*/gc;
buubotAni-_:
Ani-_eval: $i = "i" x 30000; $i =~ /(?:[^@]|)*/gc;
buubotAni-_:
Ani-_buubot doesn't show segfaults? :/
eval: $i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc;
buubotAni-_:
Ani-_dkr: I really don't like that unless :/
dkrAni-_: well, techinically my actual code still uses if and i just swapped the block with it's else block, :)
Ani-_dkr: if ($_ =~ /a/ || $_ =~ /b/) reads so much easier
rindolfdkr: heh heh.
Chris62vwjust take off the $_ =~ parts
dkrno, I had to negate it
Ani-_Not if you rewrite it. :)
dkra or b == not a and not b
Ani-_dkr: I think you mean: not(a or b) == not a and not b :)
dkrer

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 102 109 

IrcArchive