Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
        @fields = spit " ";
    
  3. or download this
    $_ = "   begins with whitespace";
    
    ...
    
    print "quoted-space split returns ", scalar @a, " elements\n";
    print "\\s+ split returns ", scalar @b, ", first one has length ",leng
    +th($b[0]),"\n";