in reply to Re^2: split and print (fore!)
in thread split and print
And give youperl -e'print"$_\n"for split/~/,"abc~123~def"' 41
I guess the following is cheatingperl -le'print for split/~/,"abc~123~def"' 37 perl -E'say for split/~/,"abc~123~def"' 34 perl -E'$_="abc~123~def";s/~/\n/g;say' 33
perl -E'say for abc,123,def' 23
|
|---|