Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
    __END__
    
    Prints --> a b c 0 c d u undef blink 0 v w a b c
    
  2. or download this
    perl -e "@list = grep{$_ ne 'aardvark'} 
                     map{defined $_ ? $_ : 'undef'} 
    ...
    print join ' ', @list;"
    
    Prints --> a b c 0 c u undef 0 v w
    
  3. or download this
    use strict;
    sub nodupes {
    ...
    Prints --> a b c 0 c d u  blink 0 v "0" w a b c
                            ^^
         There's an undef between these two spaces.