Help for this page

Select Code to Download


  1. or download this
    $a = <STDIN>; # This is one way of how you read user input
    print $a, "\n";  # This is one way of printing to stdout
    
  2. or download this
    while(my $line = <>) { # reads from stdin
       print $line; # prints everything to stdout
    }
    
  3. or download this
    `vim $some_file`;