in reply to Re: Assignments for Subroutines
in thread Assignments for Subroutines
That could be written as$,=", "; #change list delimiter for fancy printing print @evens; print "\n"; #newline $,=""; #change list delimiter back before it is a problem
No need to change it back, less possibility of an error. My 2 cents.{ local $,=", "; print @evens; print "\n"; #newline }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Assignments for Subroutines
by tobyink (Canon) on Sep 27, 2012 at 16:17 UTC | |
|
Re^3: Assignments for Subroutines
by protist (Monk) on Sep 27, 2012 at 10:55 UTC |