Nice shortcut for fetching standard input and shaving off the newline at the same time.
chomp (my $variable = <STDIN>);