| dazjorz | Ani-_: 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) |
| dazjorz | Yeah, 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. :) |
| dazjorz | Ani-_: Do you have an example? |
| anno_ | do you mean "while ( $str =~ /re/g ) { ... }"? |
| Ani-_ | what anno said |
| dazjorz | thanks :) |
| anno_ | you often want @- and @+ with that |
| dazjorz | hm? eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g { print $1 } |
| buubot | dazjorz: Error: syntax error at eval line 1, near "/foo(\w)/g { " |
| dazjorz | eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1 } |
| buubot | dazjorz: a b c d e |
| dazjorz | woot! :) eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1; print @-} |
| buubot | dazjorz: a 03 b 47 c 811 d 1215 e 1619 |
| dazjorz | ?? @- and @+ is position or so? |
| anno_ | yup |
| dazjorz | eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1, "-", [@-], "-", [@+] } |
| buubot | dazjorz: 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) |
| dazjorz | hngk :| eval: $s = "fooafoobfoocfoodfooe"; while( $s =~ /foo(\w)/g) { print $1, "-[", join(',', @-), "]-[", join (',', @+), "]" } |
| buubot | dazjorz: 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 |
| fotoflo | can anyone check out that paste? |
| dazjorz | fotoflo: the ? has to be a value |
| f00li5h | fotoflo: they would be escaped correctly |
| dazjorz | a 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 ... |
| fotoflo | ok |
| f00li5h | dazjorz: place holder, not wild card ;) |
| dazjorz | yeah, that :) I forgot the name |