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