Help for this page

Select Code to Download


  1. or download this
        #!/bin/perl -w
        $" = '-';
    ...
        $string = "a:b:c";
        @list = ($string =~ m/(\w):(\w)/g);
        print "list=@list\n";
    
  2. or download this
        list=a-b-c-d
        list=a-b
    
  3. or download this
        list=a-b-b-c