Help for this page

Select Code to Download


  1. or download this
    my $count=map $_, split;
    
  2. or download this
    my $count=+(split);  # ?!?
    
  3. or download this
    $ perl -lpe '$_=+(split)'
    foo
    1
    bar baz
    2