http://qs321.pair.com?node_id=303103

Q&A > arrays > How do I print an array with commas separating each element? - Answer contributed by Roy Johnson

$" can also be used for this:

local $" = ','; print "@arr\n";

  • Comment on Answer: How do I print an array with commas separating each element?
  • Download Code
Replies are listed 'Best First'.
Re: Answer: How do I print an array with commas seperating each element?
by QM (Parson) on Oct 29, 2003 at 20:48 UTC
    Should titles in answers be checked for spelling?

    Separate has a rat in it.

    Update: Of course, misspelling it may make it easier to search for.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of