Help for this page

Select Code to Download


  1. or download this
    my @fields = split "|", 'abc|def';
    print join ', ', @fields;  # a, b, c, |, d, e, f
    
  2. or download this
    my @fields = split /\|/, 'abc|def';
    print join ', ', @fields;  # abc, def