Skip to content
  • About’n’Search
  • Datenschutzerklärung // Privacy Declaration

bytes and bones

stuff that matters

Category: perl

Written by #xxaxxelxxFebruary 28, 2017February 28, 2017

Perl | Regex | match numbers greater than X only

Example: Numbers bigger than 240 ^([2-9][4-9]\d{1}\d*|\d{4}\d*)$

Written by #xxaxxelxxDecember 4, 2014

OTRS | open body | MIME bug solution

https://github.com/OTRS/otrs/commit/eda2b2b9a19eeaf513be3d214ab5b680d87c49e3

Written by #xxaxxelxxOctober 29, 2013

Convert time interval from seconds to days, hours, minutes, seconds with perl.

use Time::Interval; $data = parseInterval(seconds => $intervalseconds); print “$data->{days} d $data->{hours} h $data->{minutes} m $data->{seconds} s\n”;

Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • bytes and bones
    • Join 92 other followers
    • Already have a WordPress.com account? Log in now.
    • bytes and bones
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar