Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    for (split m{(\s+|"[^"]*")}, $str) {
        print $_, $/;
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
        next unless length $_;
        print "<$_>\n";
    }