17 Dec
2003
17 Dec
'03
11:17 p.m.
[[ PERL gurus out there: how can I avoid the "sh -c" process in $out = `cmd -a 'arg 1'`; ]]
open(CMD, "-|") || exec 'cmd', '-a', 'arg 1'; $out = <CMD>; ## Gets one line close(CMD); Use $out = join('',<CMD>); instead of the second line above to get the whole output at once. ---------.. ._ _.------------ Ian Goldberg University of Waterloo Computer Science Club iagoldberg@csclub.uwaterloo.ca unsigned bar(unsigned a){return a?bar(a<<1)<<1|a>a<<1>>1:1>>1;}