in reply to Concatenate printing a string and array
Double quotes maintain the array context, so you could try the following:
Note the accolades to restrict the change to the $" (list separator variable) to the smallest scope possible.{ local $" = undef; print "Your result is: @array"; }
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Concatenate printing a string and array
by AnomalousMonk (Archbishop) on Jan 05, 2009 at 09:53 UTC | |
by johngg (Canon) on Jan 05, 2009 at 11:39 UTC | |
by spickles (Scribe) on Jan 05, 2009 at 20:09 UTC | |
by johngg (Canon) on Jan 05, 2009 at 23:52 UTC | |
by AnomalousMonk (Archbishop) on Jan 05, 2009 at 18:46 UTC | |
by johngg (Canon) on Jan 05, 2009 at 20:19 UTC | |
by AnomalousMonk (Archbishop) on Jan 07, 2009 at 04:23 UTC |