@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> hi folks.
<0> how do i exclude a word in a regular expression?
<0> say i want to write a pattern that means strings that match ipod but exclude shuffle



<0> (forwardslash)ipod [^[shuffle]](forwardslash)gi
<0> ?
<0> hello?
<1> 'alo - I'm having a somewhat odd porblem, and was wondering if anyone had any pointers: http://www.cpanforum.com/posts/1783
<2> I have a perl problem, I did the calculation 342.24-332.72 and got the result 9.51999999999998 instead of 9.52 how can I fix this?
<3> am unsure of any built-in rounding functions
<3> but a..
<3> sprintf('%.2f', $result)
<3> will trim it to 2 decimal points
<3> places*
<1> Or use Math::Round



<1> http://search.cpan.org/~grommel/Math-Round-0.05/Round.pm
<3> yea, that would be more what you're looking for
<3> as that sprintf() would trim it off, as opposed to taking any real action related tot he number at hand
<2> ah yes, thank you
<3> though, the sprintf.. ya not gaining a dependency with
<2> I would like to format a date returned by mysql (ddmmyyyy) into a format like 07 Jan 2004 how would I go about doing this?
<2> I could do it manually, I was wondering if there was anything pre-made and standard to do this
<3> strtotime, mktime, strftime..
<3> would recommend looking those up..
<2> thanks fuehrer I'll check those out


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

catamein
calc thecrims
#allnitecafe
Tanishq Platinum
#linux
Chole-bhature
#chat-world
#php
#chat-world
30 somethng chat rooms



Home  |  disclaimer  |  contact  |  submit quotes