my $line = "1 http:/abcd efgh/"; my($number, $address) = split ' ', $line, 2; # $number now contains "1"; # $address now contains "http:/abcd efgh/";