If you don't want the newline on the end of $response, don't forget to chomp it.#!/usr/bin/perl -w use strict; print "Enter something: "; my $response = <STDIN>; print "You entered: $response";
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Prompting user input (newbie)
by Ovid
in thread Prompting user input (newbie)
by lauragarcia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |