My solution would be to use spilt(), because L love split().
  try something like "($tempflie, $garbage) = split(/./);"
  this should split $_ at any "." into $
  tempfile and $garbage. I beleive that if there isn't a "."
  it doesn't split anything up.