in reply to Pipe and extract

extract only 'load average:2.27

You can split the output by using comma

my $a=`uptime`; my @y=split(/,/,$a); print $y[3];

Take care of leading and trailing spaces