in reply to Spotting an empty array as argument
maybe changing $, is just good enough for your task?
DB<223> $,="\n" DB<224> @a=(); @b=1..3; $_=666 DB<225> say @b 1 2 3 DB<226> say @a DB<227> say 666 DB<228>
But remember to use local, before changing global variables. :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Spotting an empty array as argument
by Chuma (Scribe) on Mar 26, 2021 at 14:25 UTC |