how to take input from keyboard and print to screen

#!/usr/bin/perl

$input = <STDIN>; // this will take input from keyboard

print $input ; // this will output to the screen

Explore posts in the same categories: perl

Comment: