Help for this page

Select Code to Download


  1. or download this
    $var1 = 'abc~123~def';
    print join("\n",split(/\~/,$var1))."\n";
    
  2. or download this
    1 print
    2  join(
    ...
    7   )
    8  ).
    9 "\n";
    
  3. or download this
    @MyArray = split(/\~/,$var1);
    
  4. or download this
    $var1 = 'abc~123~def';
    $var1 =~ s/\~/\n/g;
    print "$var1\n";