Quantcast
Channel: User Karthik T - Stack Overflow
Browsing all 42 articles
Browse latest View live

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 Article


Answer 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

Browsing all 42 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>