Help for this page

Select Code to Download


  1. or download this
    package IO::Handle;
    
    ...
    
    
    1;
    
  2. or download this
    use Perl6::FH;
    
    ...
      # $_ has already been chomp()ed
      # with whatever $/ is right now
    }
    
  3. or download this
    is_chomped STDIN "";      # paragraph mode
    is_chomped STDIN "%%\n";  # fortune mode
    
  4. or download this
    is_not_chomped STDIN;
    
  5. or download this
    is_chomped ARGV;
    
    while (<>) {
      # $_ is chomped
    }