[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SSL Challenge: Are we in trouble?



> [[ 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
[email protected]

unsigned bar(unsigned a){return a?bar(a<<1)<<1|a>a<<1>>1:1>>1;}