#perl - Fri 9 Mar 2007 between 17:43 and 18:12



rnorwoodServo888: So the statement says 'remove all of the leading zeros from this string', which is what you want. :-)
Mhoramit's clear to me, because it does nothing except force numeric context. But learning regex is more important
rmahMhoram: heh, ok :-)
Astis $out used arithematicaly? i.e is it an integer?
then $out =~ s/^0+//; is a no-op ;-)
Servo888rnorwood: well I understand why it's suppose to do - following the sed syntax is hard, especially without a lot of practice.
rmahServo888: you'll get the hang of regexes with a bit of practice and learn to love it
or else.
Astbecasue $out ==$out, but maybe $out ne $out_after_subsititute
Mhoramhaha
rnorwoodServo888: yep. practice is good. So, use that substitution instead of the while loop you started out with.
integralARRRGH, 3000ms lag is ungood, ungood.
rnorwoodServo888: 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.
Servo888rnorwood: 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.
rmahand more time efficient
integralwooo, (traffic shaping)++!
Instant fix :)
rmahhmm
simcop2387-tvi 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
rmahisi that a good thing?
simcop2387-tvdunno 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
actionintegral 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.
integralhas a DSL line being saturated by lots of little UDP packets, and he's trying to ssh over it ---- are pure recipe for disaster.
rmahthere should be a law against UDP!
Mhoramtraffic shaping from your end helps?
integralmeh, I like it.
Mhoram: That's the magic, I have no idea why it works, but it does nicely
Mhoramgood
integraloh, 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.
actionintegral wanders off to bed
integralwanders off to bed
actionCPAN upload: File-FilterFuncs-0.52_11 by MUMIAW
CPANupload: File-FilterFuncs-0.52_11 by MUMIAW
epocheval: 22/7
buubotepoch: 3.14285714285714
epochit wont go any longer?
Teratogeneval: 355/113
buubotTeratogen: 3.14159292035398
cfeddeeval: atan(0,-1)
buubotcfedde: Error: Undefined subroutine &main::atan called at eval line 1.
cfeddeeval: atan2(0,-1)

Page: 1 8 15 22 29 36 43 50 57 64 71 78 

IrcArchive