# split the "id=xxx" part of the view URL @query = split /=/, $ENV{'QUERY_STRING'}; $uid = $query[1];