Read Basic Input and Output from the tutorials section of this site, and also the chomp documentation.#!/usr/bin/perl use strict; use warnings; print "Please enter some text: "; my $input = <STDIN>; chomp($input); print "You typed $input\n";
In reply to Re: print chomp <STDIN>
by marto
in thread print chomp <STDIN>
by redkar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |