Help for this page

Select Code to Download


  1. or download this
    print "Do you want to process the stream?";
    my $ans = <STDIN>;
    
  2. or download this
    while (<>) {
       $stream .= $_;
    }
    
  3. or download this
    {
       local $/ = undef;
       $stream = <>;  # slurp all the data in one read
    }