Apparently there was a newline character on the response I needed to chomp, so
my $sessionToken = substr($response, index($response, '=') + 1); chomp $sessionToken; -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to google-calendar-help-dataapi@googlegroups.com To unsubscribe from this group, send email to google-calendar-help-dataapi+unsubscr...@googlegroups.com For more options, visit this group at http://code.google.com/apis/calendar/community/forum.html