Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    my @tokens = split /\s+|(?<=\w)(?=(?:;|:=))/, $str;
    
    print join "\n", @tokens;
    
  2. or download this
    my @tokens = split /
                        \s+      # whitespace
    ...
                         )
                        )
                       /x, $str;