in reply to Removing first part of string with regex

You made the period optional. Get rid of the question mark.
/\.(\S+)/; print "$1\n";