#perl - Tue 24 Apr 2007 between 09:41 and 09:57



dazjorzAni-_: So B sends the packets but they appear nowhere around B
Ani-_And f3ew might be right about the bad cable thing... (Or in the worst case 2 bad nics)
dazjorzYeah, bad switch or bad cable sounds like the only option. Or something is wrong in B's ethernet card
Ani-_: Now, er, do you have any solution for the regex thing? ;)
Ani-_dazjorz: sure. add /g. :)
dazjorzAni-_: Do you have an example?
anno_do you mean "while ( $str =~ /re/g ) { ... }"?
Ani-_what anno said
dazjorzthanks :)
anno_you often want @- and @+ with that
dazjorzhm?
eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g { print $1 }
buubotdazjorz: Error: syntax error at eval line 1, near "/foo(\w)/g { "
dazjorzeval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1 }
buubotdazjorz: a b c d e
dazjorzwoot! :)
eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1; print @-}
buubotdazjorz: a 03 b 47 c 811 d 1215 e 1619
dazjorz??
@- and @+ is position or so?
anno_yup
dazjorzeval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1, "-", [@-], "-", [@+] }
buubotdazjorz: a-ARRAY(0x863fa0c)-ARRAY(0x8644124) b-ARRAY(0x863fa0c)-ARRAY(0x8644124) c-ARRAY(0x863fa0c)-ARRAY(0x8644124) d-ARRAY(0x863fa0c)-ARRAY(0x8644124) e-ARRAY(0x863fa0c)-ARRAY(0x8644124)
dazjorzhngk :|
eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1, "-[", join(',', @-), "]-[", join (',', @+), "]" }
buubotdazjorz: a-[0,3]-[4,4] b-[4,7]-[8,8] c-[8,11]-[12,12] d-[12,15]-[16,16] e-[16,19]-[20,20]
pasteling"fotoflo" at 61.48.42.63 pasted "I got a WEIRD DBI error.... Can anyone take a look?" (18 lines, 676B) at http://sial.org/pbot/24460
fotoflocan anyone check out that paste?
dazjorzfotoflo: the ? has to be a value
f00li5hfotoflo: they would be escaped correctly
dazjorza value in the table
not a limit or offset value
iirc, that's not possible
also, you can't use field names in wildcards
e.g. SELECT ? FROm ...
fotoflook
f00li5hdazjorz: place holder, not wild card ;)
dazjorzyeah, that
:)
I forgot the name

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

IrcArchive