Help for this page

Select Code to Download


  1. or download this
    $ echo -n "0" | perl -E'while(<>) { say "GOT" }'
    GOT
    $ echo -n "0" | perl -E'while(<> and 1) { say "GOT" }'
    $
    
  2. or download this
    $ echo "Hello" | perl -E'while(<>){ print $_ }'
    Hello
    $ echo "Hello" | perl -E'<>; print $_'
    $
    
  3. or download this
    while (defined($_ = <$fh>))