Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    # outputs
    a b c a d e undef f g
    
  2. or download this
    sub compress { my$x;map{defined($x)?(defined($_)&&($x eq$_)?():($x=$_)
    +):defined($_)?($x=$_):()}@_;
    }