| rnorwood | Servo888: So the statement says 'remove all of the leading zeros from this string', which is what you want. :-) |
| Mhoram | it's clear to me, because it does nothing except force numeric context. But learning regex is more important |
| rmah | Mhoram: heh, ok :-) |
| Ast | is $out used arithematicaly? i.e is it an integer? then $out =~ s/^0+//; is a no-op ;-) |
| Servo888 | rnorwood: well I understand why it's suppose to do - following the sed syntax is hard, especially without a lot of practice. |
| rmah | Servo888: you'll get the hang of regexes with a bit of practice and learn to love it or else. |
| Ast | becasue $out ==$out, but maybe $out ne $out_after_subsititute |
| Mhoram | haha |
| rnorwood | Servo888: yep. practice is good. So, use that substitution instead of the while loop you started out with. |
| integral | ARRRGH, 3000ms lag is ungood, ungood. |
| rnorwood | Servo888: The while loop is the way you'd do it in C, but the substitution is much more perl-ey, shorter, and easier to understand. |
| Servo888 | rnorwood: for me the while loop makes perfect sense, but yes once you understand the regex syntax I'm sure it's a lot more fluid. |
| rmah | and more time efficient |
| integral | wooo, (traffic shaping)++! Instant fix :) |
| rmah | hmm |
| simcop2387-tv | i traffic shape pings so that if someone sends 5 fast enough they get sent back in reverse order 5 in under 5 seconds that is |
| rmah | isi that a good thing? |
| simcop2387-tv | dunno but it certainly messes with the average and max ping times on their end, all pings wait 5 seconds to get sent at least that anyway |
| action | integral has a DSL line being saturated by lots of little UDP packets, and he's trying to ssh over it ---- are pure recipe for disaster. |
| integral | has a DSL line being saturated by lots of little UDP packets, and he's trying to ssh over it ---- are pure recipe for disaster. |
| rmah | there should be a law against UDP! |
| Mhoram | traffic shaping from your end helps? |
| integral | meh, I like it. Mhoram: That's the magic, I have no idea why it works, but it does nicely |
| Mhoram | good |
| integral | oh, no, I do, it's the upload that's smaller than the download, so I have to limit how fast my machine processing incoming packets so they don't queue on the outgoing leg. |
| action | integral wanders off to bed |
| integral | wanders off to bed |
| action | CPAN upload: File-FilterFuncs-0.52_11 by MUMIAW |
| CPAN | upload: File-FilterFuncs-0.52_11 by MUMIAW |
| epoch | eval: 22/7 |
| buubot | epoch: 3.14285714285714 |
| epoch | it wont go any longer? |
| Teratogen | eval: 355/113 |
| buubot | Teratogen: 3.14159292035398 |
| cfedde | eval: atan(0,-1) |
| buubot | cfedde: Error: Undefined subroutine &main::atan called at eval line 1. |
| cfedde | eval: atan2(0,-1) |