in reply to Re^4: printing a scalar as an array
in thread printing a scalar as an array
As for not using $\ = "\n", to do it right, you'd have to do it each time before a print, and do it localized, or some other part of the program might act unexpectedly.
If you don't want to type the "\n", use Perl6::Say (or whatever it is called), or use something like:
(although you won't be able to print to a filehandle that way).sub printnl {print @_, "\n"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: printing a scalar as an array
by RazorbladeBidet (Friar) on Feb 23, 2005 at 14:33 UTC | |
by Anonymous Monk on Feb 23, 2005 at 15:24 UTC | |
by g0n (Priest) on Feb 23, 2005 at 15:50 UTC | |
by dragonchild (Archbishop) on Feb 23, 2005 at 14:42 UTC | |
by Random_Walk (Prior) on Feb 23, 2005 at 16:40 UTC |