#perl - Tue 1 May 2007 between 19:32 and 19:52



stuufno, that's definitely not
that would be match the regexp, then evaluate the return value
ATinyMouseI didn't think it was correct, now I understand why it doesn't work the way I expected
I figured there was just a quick function that I could call within an if statement that would tell me the regular expression was valid before I added it to an array.... Hopefully qr// will work
stuufeval: $re = ':('; qr-$re-
buubotstuuf: Error: Unmatched ( in regex; marked by <-- HERE in m/:( <-- HERE / at eval line 1.
actionCPAN upload: Tk-Wizard-2.005 by MTHURN
CPANupload: Tk-Wizard-2.005 by MTHURN
actionCPAN upload: Astro-SpaceElevator-0.02 by DBROOKS
CPANupload: Astro-SpaceElevator-0.02 by DBROOKS
stuufyeah you have to eval it since it die()s
ATinyMouseThat makes sense
stuufeval: $re = ':(o)'; qr-$re-
buubotstuuf: qr/(?-xism::(o))/
stuufif it's correct you can actually keep the return value as an already compiled regexp
Caelumeval: qw(D O N G S)
buubotCaelum: S
buumy $re = eval qr/$code/; if ( $re ) { push @x, $re }
rick[lvd]push @x, $re if $re; is cooler
kekekeke
Caelumpush @ass, $dong if $dong
buuWell
Caelumeval { qr/$code/ }
buupush @x, eval { qr/$code/ }; @x=grep$_,@x;
Or perhaps
my @valid = grep { eval{qr/$_/} } @res;
But you lose the qr object
Caelumthis coworker is telling me DB_File gets corrupted if storing more than 10k records...
ATinyMousebuu: Thanks! That is exactly what I was looking for
puffAnybody know, offhand, what a urlencoded newline looks like?
ATinyMouseWithout the {} my script was bombing at the first invalid regex....
Caelumpuff: %0A
puffCaelum: Danke.
ATinyMouseor %0D%0A if you are on windoz.....
puffyah... I mainly need to to test some error-handlnig.
CaelumURI can encode stuff into URLs
Aankhen``What is the best way to remove all the elements of a list which match an arbitrary criteria? I'm thinking `@foo = grep { !... } @foo`, but I'd welcome any better suggestions.
stuufeval: URI::Escape::uri_escape("\n")
buubotstuuf: %0A
buuAankhen``: Grep..
Aankhen``buu: So what I thought, then?
buuYes.

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 

IrcArchive