↧
Answer by Karthik T for Perl - How to suppress output from a forked child...
perl -e 'exec("ls >/dev/null")'Works for me atleast. Trying 2>&1This convoluted mess works as wellperl -e 'exec("ls >&2 2>&1 1>/dev/null")'Even this works, thought it...
View ArticleAnswer by Karthik T for Implications of using "auto" to iterate over a C++...
This code uses 2 new features from C++11 standard the auto keyword, for type inference, and the range based for loop.Using just auto this can be written as (thanks Ben)for (auto it=mymap.begin();...
View Article