Getting QueryString from with a module
Oswald is correct. Alternatively, in Drupal 7, you can use drupal_get_query_parameters():

$query_parameters = drupal_get_query_parameters();
if (!empty($query_parameters['l'])) {
  $l = $query_parameters['l']
}