Software >> Development >> Languages >> Perl >> How to change output delimiter for arrays

1. $" = ""; /* set the delimiter to be null */ @buf = (); /* initialise to zero elements */ $buf[0] = "a"; $buf[1] = "b"; print "buffer = @buf\n"; 2. Alternatively, printing an array without using double quotes will result in no separators between array elements eg. print @myarray => no separators print "@myarray" => will use separators