Some examples in perl, python, js, C++, C, shell (bash).